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.
IPs
Tx and Rx datagrams
SLIPTx
SLIPTx
IPv4_T
IPTxdatagram {
}
IPv4_T IPRxdatagram
{
}
IP
DLAPI_T TNetIface {
}
SLIPs API
Transmit
circular
buffer
Receive
circular
buffer
Figure 16. IP/Data Link Interface.