Friday, February 26, 2010

Socket Register Part 2

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

38 comments:

  1. 與其爭取不可能得到的東西,不如善自珍惜運用自己所擁有的........................................

    ReplyDelete
  2. 有空我一定會常來逛你的部落格!!!! ..............................

    ReplyDelete
  3. 知識可以傳授,智慧卻不行。每個人必須成為他自己。......................................................................

    ReplyDelete
  4. 當一個人內心能容納兩樣相互衝突的東西,這個人便開始變得有價值了。..................................................................

    ReplyDelete
  5. 好的開始並不代表會成功,壞的開始並不代表是失敗............................................................

    ReplyDelete
  6. 卡爾.桑得柏:「除非先有夢,否則一切皆不成。」共勉!............................................................

    ReplyDelete
  7. 人類的聰明,並非以經驗為依歸,而是以接受經驗的行程為依歸。..................................................

    ReplyDelete
  8. 每次看完你的文章,總是回味許久,要經常發表喔。..................................................

    ReplyDelete