參數(shù)資料
型號(hào): MCW1001AT-I/SS
廠商: Microchip Technology
文件頁數(shù): 40/66頁
文件大?。?/td> 0K
描述: IC INTERFACE SOCKET XLP 28-SSOP
標(biāo)準(zhǔn)包裝: 2,100
系列: *
2011 Microchip Technology Inc.
Preliminary
DS70671A-page 45
MCW1001A
6.11.17
SOCKET_SEND_TO_RESPONSE_MSG
(30 RESPONSE)
This message indicates the result of the attempted socket Sendto command. If successful, the number of bytes trans-
ferred will be returned. If unsuccessful, an ACK_MSG will be returned with a subsequent asynchronous Error event mes-
sage.
6.11.18
SOCKET_RECV_FROM_MSG
(119 COMMAND)
The RecvFrom command attempts to read data from an open socket. It is normally used with UDP sockets as the return
values include the source address of the received data. In this version of WiComm-Socket, the RecvFrom command is
always non-blocking, but UDP received data is not buffered in WiComm-Socket. If data is available to be read from the
socket, the amount of data available will be returned (not to exceed the specified buffer size in the call). If no data is
available, the RecvFrom response will return 0 as the received count. As a result of the non-buffered approach to UDP
receive buffers, WiComm-Socket uses an asynchronous SOCKET_RECV_FROM_RESPONSE_MSG to report any data
received on a bound UDP listener socket. In this way, the SOCKET_RECV_FROM_MSG is not typically used to poll for
UDP socket received data and by design, a call to this function on a UDP socket will return 0 bytes read.
Response Message: SOCKET_RECV_FROM_RESPONSE_MSG
6.11.19
SOCKET_RECV_FROM_RESPONSE_MSG
(31 RESPONSE)
This message indicates the result of the attempted socket RecvFrom command. The number of bytes transferred will
be returned (can be zero).
Msg Byte Index
Description
0:5
Header; Message Type = 30, Data Length = 2
6:7
Byte count sent
8
0x45 (Frame Trailer)
Msg Byte Index
Description
0:5
Header; Message Type = 119, Data Length = 4
6
Socket Handle (previously created with SOCKET_CREATE_MSG)
7
Reserved
8:9
Amount of data to be read
10
0x45 (Frame Trailer)
Msg Byte Index
Description
0:5
Header; Message Type = 31, Data Length = 22 + N Data Bytes
6
Socket Handle (used when data was read)
7
Reserved
8:9
Port number of sender
10:25
IP Address of sender
26:27
Byte count received (N)
28:N + 27
N bytes of data read
N + 28
0x45 (Frame Trailer)
相關(guān)PDF資料
PDF描述
MCZ145010EG IC SMOKE DETECT PHOTOELEC 16SOIC
MCZ145012EG IC SMOKE DETECT PHOTOELEC 16SOIC
MCZ33094EG IC IGNITION CONTROL 12V 16-SOIC
MCZ33287EG IC DRIVER DUAL LOSIDE MON 20SOIC
MCZ33290EF IC SER LNK INTER ISO KLINE 8SOIC
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MCW1011 制造商:MINMAX 制造商全稱:Minmax Technology Co., Ltd. 功能描述:2W, Wide Input Range SIP, Single Output DC/DC Converters
MCW1012 制造商:MINMAX 制造商全稱:Minmax Technology Co., Ltd. 功能描述:2W, Wide Input Range SIP, Single Output DC/DC Converters
MCW1013 制造商:MINMAX 制造商全稱:Minmax Technology Co., Ltd. 功能描述:2W, Wide Input Range SIP, Single Output DC/DC Converters
MCW1021 制造商:MINMAX 制造商全稱:Minmax Technology Co., Ltd. 功能描述:2W, Wide Input Range SIP, Single Output DC/DC Converters
MCW1022 制造商:MINMAX 制造商全稱:Minmax Technology Co., Ltd. 功能描述:2W, Wide Input Range SIP, Single Output DC/DC Converters