#include "../lnp-logical.h"
#include <time.h>
Go to the source code of this file.
Defines | |
| #define | LNP_LOGICAL_BAUD_RATE B2400 |
| baud rate | |
| #define | LNP_LOGICAL_PARITY SMR_P_ODD |
| parity | |
| #define | LNP_BYTE_TIME MSECS_TO_TICKS(5) |
| time to transmit a byte | |
| #define | LNP_BYTE_TIMEOUT (3*LNP_BYTE_TIME/2) |
| timeout waiting for a byte | |
| #define | LNP_BYTE_SAFE (4*LNP_BYTE_TIME) |
| delay before transmitting a byte | |
| #define | LNP_WAIT_TXOK (2*LNP_BYTE_TIMEOUT) |
| delay after good transmit | |
| #define | LNP_WAIT_COLL (4*LNP_BYTE_TIMEOUT) |
| delay after collision | |
| #define | TX_COLL (-1) |
| not transmitting, last xmit was collision | |
| #define | TX_IDLE ( 0) |
| not transmitting, last xmit OK | |
| #define | TX_ACTIVE ( 1) |
| currently transmitting | |
Functions | |
| void | lnp_logical_init (void) |
| Initialize the logical layer (IR port). | |
| void | lnp_logical_shutdown (void) |
| Shutdown the logical layer (IR port). | |
| void | txend_handler (void) |
| Callback: end of transmission. | |
Variables | |
| volatile signed char | tx_state |
| transmit status | |
Definition in file lnp-logical.h.
| #define LNP_BYTE_SAFE (4*LNP_BYTE_TIME) |
| #define LNP_BYTE_TIME MSECS_TO_TICKS(5) |
| #define LNP_BYTE_TIMEOUT (3*LNP_BYTE_TIME/2) |
| #define LNP_LOGICAL_BAUD_RATE B2400 |
| #define LNP_LOGICAL_PARITY SMR_P_ODD |
| #define LNP_WAIT_COLL (4*LNP_BYTE_TIMEOUT) |
| #define LNP_WAIT_TXOK (2*LNP_BYTE_TIMEOUT) |
| #define TX_ACTIVE ( 1) |
| #define TX_COLL (-1) |
| #define TX_IDLE ( 0) |
| void lnp_logical_init | ( | void | ) |
| void lnp_logical_shutdown | ( | void | ) |
| void txend_handler | ( | void | ) |
Callback: end of transmission.
| volatile signed char tx_state |
transmit status
|
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2005 by the authors. |
1.5.4