Navigation bar
  Start Previous page  22 of 35  Next page End Home  12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32  

Embedded Web Server for the CR16
National Semiconductor
Jeff Wright
22
    UBYTE  *TxBuf;               // Points to RAM buffer for dynamic data             
    UWORD   TxCount;             // Number of bytes to xmit                           
    const   UBYTE   *html;       // Points to ROM-based data    
    UWORD   HtmLen;              // Number of bytes in HTML page                      
}DLAPI_T;
Figure 15.  Data Link Interface data structure
SLIP responds to the following commands...
#define     DLSEND      BIT0
#define     DLRECV      BIT1
#define     ENDRECD     BIT7
Figure 16 represents a schematic of the IP-Data Link interface.
IP’s
Tx and Rx datagrams
SLIPTx
SLIPTx
IPv4_T
IPTxdatagram {…}
IPv4_T IPRxdatagram
{…}
IP
DLAPI_T TNetIface {…}
SLIP’s “API”
Transmit
circular
buffer
Receive
circular
buffer
Figure 16.  IP/Data Link Interface.
Microcontroller.com White Papers Previous page Top Next page