Hi,
This week we will finish off with the final sections of the Socket Registers.
Below is a list of socket registers:
0x415 - The IP Type of service field specifies the protocol number in the IP header. This is used for IP RAW mode
0x416 - The Time to Live register specifies the datagram’s life time in the IP header
0x420~0x421 - The Transfer Free Size registers allows the user to determine the amount of free space remaining in the transfer buffer. You should check if this register is free or not before
sending packets.
0x422 ~0x423 - The read pointer register indicates the current read position of the transfer buffer. This register is used in our driver to determine which data is being read.
0x424~0x425 - The write pointer register indicates the current write position of the transfer buffer. This register is also used in our driver to determine if there is any new data being written.
0x426~0x427 - The Received Size Register indicates the amount of byte received in the RX buffer. You should check this register to know if there is any new data received from the network.
0x428~0x429 - The read pointer register indicates the current read position of the receive buffer. This is used in the driver to determine if there are any unread data in the buffer.
As you can see, there are some essential registers which you might use from this list, but one thing I would like to highlight is that the 0x426~0x427 - The Received Size Register is important. You should use it to check for any new data received or you can use the interrupt PIN and Sn_IR register as an alternative method to check for new data.
Thank you! We will continue next week.
WIZnet HK
Friday, February 26, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment