| Electronic Components Datasheet Search |
|
W5100 Datasheet(PDF) 45 Page - WIZnet Co., Ltd |
|
|
|||||||||||||||||||||||||||||
W5100 Datasheet(HTML) 45 Page - WIZnet Co., Ltd |
|
45 / 72 page ![]() © Copyright 2009-2011 WIZnet Co., Inc. All rights reserved. 44 ◼ ESTABLISHED : Received Data ? Check as below to know if data is received from remote peer or not. First method : { If (Sn_IR(RECV bit) == ‘1’) goto Receiving Process stage; /* In this case, if the interrupt of Socket n is activated, interrupt occurs. Refer to Interrupt Register(IR), Interrupt Mask Register (IMR) and Socket n Interrupt Register (Sn_IR). */ } Second Method : { if (Sn_RX_RSR != 0x0000) goto Receiving Process stage; } ◼ ESTABLISHED : Receiving Process Received data can be processed as below. { /* first, get the received size */ get_size = Sn_RX_RSR; /* calculate offset address */ get_offset = Sn_RX_RD & gSn_RX_MASK; /* calculate start address(physical address) */ get_start_address = gSn_RX_BASE + get_offset; /* if overflow socket RX memory */ if ( (get_offset + get_size) > (gSn_RX_MASK + 1) ) { /* copy upper_size bytes of get_start_address to destination_addr */ upper_size = (gSn_RX_MASK + 1) – get_offset; memcpy(get_start_address, destination_addr, upper_size); /* update destination_addr*/ destination_addr += upper_size; /* copy left_size bytes of gSn_RX_BASE to destination_addr */ left_size = get_size – upper_size; |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |