| Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | Byte 6 | Byte 7 |
|---|---|---|---|---|---|---|---|
| GPIO_ GET_VAL (0x09) | ECHO | 0 | 0 | 0 | 0 | 0 | 0 |
The GPIO_GET_VAL command retrieves levels present on the I/O pins:
Command is an 8-byte array of the following format:
For convenience GPIO_GET_VAL_CMD structure is declared in reports.h file:
typedef struct _GPIO_GET_VAL_CMD
{
unsigned char id; // = GPIO_GET_VAL;
unsigned char echo;
unsigned char reserved[6]; // must be 0
} __PACKED_ATTR GPIO_GET_VAL_CMD, *PGPIO_GET_VAL_CMD;
GPIO-24 adapter sends GPIO_GET_VAL response after command execution. The I/O values are specified inside the response.