7.1.2 GPIO_Write Command and its Response
The GPIO_Write command (0x64) configures the specified GPIO
output pin to the selected logic state.
This command is sent through Endpoint 0x04 (OUT). The response is read through Endpoint 0x84 (IN).
| Byte Index | Command | Description | |
|---|---|---|---|
| 0 | 0x64 | Command code | Sets the specified GPIO pin to the specified state |
| 1 |
|
GPIONum-GPIOStat: GPIO0 Low GPIO0 High GPIO1 Low GPIO1 High GPIO2 Low GPIO2 High GPIO3 Low GPIO3 High GPIO4 Low GPIO4 High GPIO5 Low GPIO5 High | GPIO pin and its output state |
| Byte Index | Response | Description | |
|---|---|---|---|
| 0 | 0x64 | Returns command code | Returns whether the GPIO_Write command was
accepted |
| 1 | 0x20
| Accepted - success | Accepted, and the output state is written |
0x60 | Rejected – invalid pin number | Rejected because the pin number is invalid | |
0x68 | Rejected – not a GPIO | Rejected because the selected pin is not configured as a GPIO | |
