| поискавой системы для электроныых деталей |
|
W6100 датащи(PDF) 88 Page - WIZnet Co., Ltd |
|
|
|||||||||||||||||||||||||||||
W6100 датащи(HTML) 88 Page - WIZnet Co., Ltd |
|
88 / 149 page ![]() W6100 – Hardwired Dual TCP/IP Stack Controller 88/149 /* checnk SOCKET status */ if (Sn_SR == SOCK_ESTABLISHED) { Sn_IRCLR[CON] = ‘1’; /* clear SOCKET Interrupt */ goto Received DATA? /* or goto Send DATA?; */ } else if(Sn_IR[TIMEOUT] == ‘1’) goto Timeout?; /* check destination address */ if(Sn_MR[3:0] == TCP6 Mode) destination_addr[0:15] = Sn_DIP6R; else if(Sn_MR[3:0] == TCP4 Mode) destination_addr[0:3] = Sn_DIPR; } Receive DATA? Users can know whether DATA on SOCKET n is received by reading Sn_IR[RECV] or Sn_RX_RSR. First method : { /* check SOCKET RX buffer Received Size */ if (Sn_RX_RSR > 0) goto Receiving Process; } Second method : { /* check SOCKET RECV Interrupt bit */ if (Sn_IR[RECV] == ‘1’) { Sn_IRCLR[RECV] = ‘1’; /* clear SOCKET Interrupt */ goto Receiving Process; } // end if } Receiving Process This is the reading process received data from SOCKET n RX buffer block. After reading received data, users must increase Sn_RX_RD by data read size and make W6100 update the RX buffer by issuing Sn_CR[RECV] command. If data still remains in SOCKET n RX buffer block after Sn_CR[RECV] command, then Sn_IR[RECV] interrupt occurs again to inform user that data remains in the buffer. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |