7.1.3 GPIO_Read Command and its Response

The GPIO_Read command (0x68) reads the logic state of the specified GPIO pin.

This command is sent through Endpoint 0x04 (OUT). The response is read through Endpoint 0x84 (IN).

Table 7-6. GPIO_Read - Command
Byte IndexCommandDescription
00x68Command codeReads the specified GPIO pin and returns the state
1

0x00

0x10

0x20

0x30

0x40

0x50

GPIO0

GPIO1

GPIO2

GPIO3

GPIO4

GPIO5

GPIO pin
Table 7-7. GPIO_Read - Response
Byte IndexResponseDescription
00x68Returns the command codeReturns whether the GPIO_Read command was accepted along with the pin state
1

0x21

0x60

Accepted - success

Rejected – not a GPIO pin .

Accepted, and the pin is read.

Rejected because the selected pin is not configured as a GPIO.

20x00

0x01

The GPIO pin state is LOW.

The GPIO pin state is HIGH.

The GPIO pin state