lnp-logical.h File Reference

Internal LNP Interface: link networking protocol logical layer. More...

#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.

Macros

#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
 

Detailed Description

Internal LNP Interface: link networking protocol logical layer.

Author
Markus L. Noga marku.nosp@m.s@no.nosp@m.ga.de

Definition in file lnp-logical.h.

Macro Definition Documentation

◆ LNP_BYTE_SAFE

#define LNP_BYTE_SAFE   (4*LNP_BYTE_TIME)

delay before transmitting a byte

Definition at line 60 of file lnp-logical.h.

◆ LNP_BYTE_TIME

#define LNP_BYTE_TIME   MSECS_TO_TICKS(5)

time to transmit a byte

Definition at line 56 of file lnp-logical.h.

◆ LNP_BYTE_TIMEOUT

#define LNP_BYTE_TIMEOUT   (3*LNP_BYTE_TIME/2)

timeout waiting for a byte

Definition at line 59 of file lnp-logical.h.

◆ LNP_LOGICAL_BAUD_RATE

#define LNP_LOGICAL_BAUD_RATE   B2400

baud rate

Definition at line 54 of file lnp-logical.h.

◆ LNP_LOGICAL_PARITY

#define LNP_LOGICAL_PARITY   SMR_P_ODD

parity

Definition at line 55 of file lnp-logical.h.

◆ LNP_WAIT_COLL

#define LNP_WAIT_COLL   (4*LNP_BYTE_TIMEOUT)

delay after collision

Definition at line 63 of file lnp-logical.h.

◆ LNP_WAIT_TXOK

#define LNP_WAIT_TXOK   (2*LNP_BYTE_TIMEOUT)

delay after good transmit

Definition at line 62 of file lnp-logical.h.

◆ TX_ACTIVE

#define TX_ACTIVE   ( 1)

currently transmitting

Definition at line 68 of file lnp-logical.h.

◆ TX_COLL

#define TX_COLL   (-1)

not transmitting, last xmit was collision

Definition at line 66 of file lnp-logical.h.

◆ TX_IDLE

#define TX_IDLE   ( 0)

not transmitting, last xmit OK

Definition at line 67 of file lnp-logical.h.

Function Documentation

◆ lnp_logical_init()

void lnp_logical_init ( void  )
extern

Initialize the logical layer (IR port)

◆ lnp_logical_shutdown()

void lnp_logical_shutdown ( void  )
extern

Shutdown the logical layer (IR port)

◆ txend_handler()

void txend_handler ( void  )

Callback: end of transmission.

Variable Documentation

◆ tx_state

volatile signed char tx_state
extern

transmit status


brickOS is released under the Mozilla Public License.
Original code copyright 1998-2005 by the authors.

Generated for brickOS Kernel Developer by doxygen 1.9.8