| Electronic Components Datasheet Search |
|
W6100 Datasheet(PDF) 90 Page - WIZnet Co., Ltd |
|
|
|||||||||||||||||||||||||||||
W6100 Datasheet(HTML) 90 Page - WIZnet Co., Ltd |
|
90 / 149 page ![]() W6100 – Hardwired Dual TCP/IP Stack Controller 90/149 if( send_size > gSn_TX_MAX ) send_size = gSn_TX_MAX; while(send_size > Sn_TX_FSR); // wait until SOCKET n TX Buffer is free */ /* If you don’t want to wait TX Buffer Free send_size = Sn_TX_FSR; // write DATA as Size of Free Buffer */ /* calculate Write Offset Address */ get_start_address = Sn_TX_WR; /* copy get_size of get_start_address to destination_address */ memcpy(get_start_address, destination_address, send_size); /* increase Sn_TX_WR as send_size */ Sn_TX_WR += send_size; /* set SEND and SEND6 Command in each TCP and TCP6 Mode */ Sn_CR = SEND; /* set SEND command in TCP Mode */ while(Sn_CR != 0x00); /* wait until SEND or SEND6 Command is cleared */ /* wait until SEND or SEND6 Command is completed or Timeout is occurred */ while(Sn_IR[SENDOK] == ‘0’ and Sn_IR[TIMEOUT] = ‘0’); /* clear SOCKET Interrupt*/ if(Sn_IR[SENDOK] == ‘1’) Sn_IRCLR[SENDOK] = ‘1’; else goto Timeout?; } Received FIN (Passive Close) This is the passive close process. When W6100 receives FIN packet from peer, Sn_IR[DISCON] interrupt occurs and Sn_SR value will change to SOCK_CLOSE_WAIT. First Method: { If(Sn_SR == SOCK_CLOSE_WAIT) goto Disconnecting Process; } Second Method: { If(Sn_IR[DISCON] == ‘1’) goto Disconnecting Process; |
|
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 |