Download Wireless Ethernet LAN Adaptor
Transcript
3.1.5 ETHERNET INTERFACE The Ethernet Interface module contains of four API functions and one interrupt routine. Eth_send() sends the data in the current Ethernet Tx buffer. Eth_recv() polls the empty bit of the current RxBD and returns the current Rx buffer if a new packet has arrived. Eth_setRxBufferEmpty() sets the current Rx BD’s empty flag. Eth_getTxBuffer() gets the current Tx buffer if it is ready for use. The interrupt routine will be executed after a packet has been received from the computer into the Ethernet Interface. During the execution of this interrupt, the Copy Module will be notified that a new packet has been received and increment a counter that keep tracks of total number of packets stored in the Receive Buffer. 3.1.6 SERIAL INTERFACE The serial Interface module contains four API functions. Ser_send() sends the data in the current serial Tx buffer. Ser_recv() polls the data ready bit of the current serial status register, and copy the current byte to receive buffer in main memory. It keeps copying new serial bytes to receive buffer until the EOS is detected. Eth_setRxBufferEmpty() sets the current Rx BD’s empty flag. Eth_getTxBuffer() gets the current Tx buffer if it is ready for use. The interrupt routine will be executed after a packet has been received from the computer into the Ethernet Interface. During this interrupt routine, the Copy Module will be notified about the data length of this new set of serial data for the reconstruction of different sets of serial data into one complete packet. 3.1.7 GETLOCALIP PROCEDURE This feature is not implemented yet at this point in time. 27