#include "../lnp-logical.h"
#include <time.h>
Include dependency graph for lnp-logical.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | LNP_LOGICAL_BAUD_RATE B2400 |
baud rate. More... | |
#define | LNP_LOGICAL_PARITY SMR_P_ODD |
parity. More... | |
#define | LNP_BYTE_TIME MSECS_TO_TICKS(5) |
time to transmit a byte. More... | |
#define | LNP_BYTE_TIMEOUT (3*LNP_BYTE_TIME/2) |
timeout waiting for a byte. More... | |
#define | LNP_BYTE_SAFE (4*LNP_BYTE_TIME) |
delay before transmitting a byte. More... | |
#define | LNP_WAIT_TXOK (2*LNP_BYTE_TIMEOUT) |
delay after good transmit. More... | |
#define | LNP_WAIT_COLL (4*LNP_BYTE_TIMEOUT) |
delay after collision. More... | |
#define | TX_COLL (-1) |
not transmitting, last xmit was collision. More... | |
#define | TX_IDLE ( 0) |
not transmitting, last xmit OK. More... | |
#define | TX_ACTIVE ( 1) |
currently transmitting. More... | |
Functions | |
void | lnp_logical_init (void) |
Initialize the logical layer (IR port). More... | |
void | lnp_logical_shutdown (void) |
Shutdown the logical layer (IR port). More... | |
void | txend_handler (void) |
Callback: end of transmission. More... | |
Variables | |
volatile signed char | tx_state |
transmit status. More... |
Definition in file lnp-logical.h.
|
delay before transmitting a byte.
Definition at line 60 of file lnp-logical.h. |
|
time to transmit a byte.
Definition at line 56 of file lnp-logical.h. |
|
timeout waiting for a byte.
Definition at line 59 of file lnp-logical.h. |
|
baud rate.
Definition at line 54 of file lnp-logical.h. |
|
parity.
Definition at line 55 of file lnp-logical.h. |
|
delay after collision.
Definition at line 63 of file lnp-logical.h. |
|
delay after good transmit.
Definition at line 62 of file lnp-logical.h. |
|
currently transmitting.
Definition at line 68 of file lnp-logical.h. |
|
not transmitting, last xmit was collision.
Definition at line 66 of file lnp-logical.h. |
|
not transmitting, last xmit OK.
Definition at line 67 of file lnp-logical.h. |
|
Initialize the logical layer (IR port).
Referenced by kmain(). |
|
Shutdown the logical layer (IR port).
Referenced by kmain(). |
|
Callback: end of transmission.
|
|
transmit status.
Definition at line 77 of file lnp-logical.h. |
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |