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).

Table 7-4. GPIO_Write - Command
Byte IndexCommandDescription
00x64Command codeSets the specified GPIO pin to the specified state
1

0x00

0x01

0x10

0x11

0x20

0x21

0x30

0x31

0x40

0x41

0x50

0x51

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
Table 7-5. GPIO_Write - Response
Byte IndexResponseDescription
00x64Returns command codeReturns whether the GPIO_Write command was accepted
10x20 Accepted - success Accepted, and the output state is written
0x60Rejected – invalid pin numberRejected because the pin number is invalid
0x68Rejected – not a GPIORejected because the selected pin is not configured as a GPIO