![](http://datasheet.mmic.net.cn/Microchip-Technology/MCW1001AT-I-SS_datasheet_98973/MCW1001AT-I-SS_26.png)
MCW1001A
DS70671A-page 26
Preliminary
2011 Microchip Technology Inc.
6.3
WiComm-Socket Control Messages
Messages described in this section are used to manage Wicomm-Socket in areas unrelated to wireless networking.
6.3.1
RESET_MSG
(170 COMMAND)
WiComm-Socket can be reset to the initialization vector by issuing the RESET_MSG. Becasue there is no internal non-
volatile memory, all configuration parameters will be reset to default values. A single ACK_MSG will confirm receipt of
this command prior to the reset. Upon a successful reset, WiComm-Socket will issue an EVENT_MSG - Startup Event.
Response Message: ACK_MSG
6.3.2
GET_VERSION_MSG
(23 COMMAND)
In response to this command, Wicomm-Socket will issue the EVENT-MSG – Startup Event which contains version infor-
mation.
Response Message: ACK_MSG followed by asynchronous EVENT_MSG – Startup Event
6.3.3
GPIO_MSG
(172 COMMAND)
WiComm-Socket can be directed to write/read to/from GPIO pins by the host. Refer to the component diagram for GPIO
index numbers that correspond to particular package pins. Using this index, the host may use this command to force
the I/O pin to source current as an output in either a high or low logic state, or the host may read the pin state by using
“Read Input” as the GPIO operation. A GPIO response will be issued to allow WiComm-Socket to report the current
state of the selected pin.
Response Message: GPIO_RESPONSE_MSG
6.3.4
GPIO_RESPONSE_MSG
(50 RESPONSE)
In response to a GPIO_MSG, WiComm-Socket will return the current state of the particular I/O pin. This message con-
tains the index of the pin that has been operated on, and the result of the operation.
Response Message: GPIO_RESPONSE_MSG
Msg Byte Index
Description
0:5
Header; Message Type = 170, Data Length = 0
6
0x45 (Frame Trailer)
Msg Byte Index
Description
0:5
Header; Message Type = 23, Data Length = 0
6
0x45 (Frame Trailer)
Msg Byte Index
Description
0:5
Header; Message Type = 172, Data Length = 2
6
GPIO Index
7
GPIO Operation - 0 = Set Output Low, 1 = Set Output High, 2 = Read Input
8
0x45 (Frame Trailer)
Msg Byte Index
Description
0:5
Header; Message Type = 50, Data Length = 2
6
GPIO Index
7
GPIO Result – 0 = Output Low
1 = Output High
2 = Input Low
3 = Input High
255 = Invalid Index
8
0x45 (Frame Trailer)