7.7.4. CMD_GPIO_REMOTE_READCONFIG_REQ
This command reads the current configuration of the free GPIOs of the connected remote
device.
Format:
Start signal
Command
Length
CS
0x02
0x2C
0x00 0x00
0x2E
Response (
CMD_GPIO_REMOTE_READCONFIG_CNF
Start signal
Command | 0x40
Length
Status
Block
1
. . .
Block
n
CS
0x02
0x6C
2 Bytes
1 Byte
x Bytes
x Bytes
1 Byte
Status:
0x00:
Request received and processed
0x01:
Operation failed
0xFF:
Operation not permitted
CMD_GPIO_REMOTE_READCONFIG_CNF block structure
Each
Block
has the following format:
Length
GPIO_ID
Function
Value
0x03
1 Byte
1 Byte
1 Byte
Length:
Length of the subsequent bytes in this block
GPIO_ID:
ID of the GPIO, see chapter
Function:
0x00:
GPIO is not configured yet (Length is 0x02 and
Value
is empty)
0x01:
GPIO works as input
0x02:
GPIO works as output
Value:
• if
Function
is input:
0x00:
GPIO has no pull resistor
0x01:
GPIO has pull down resistor
0x02:
GPIO has pull up resistor
• if
Function
is output:
0x00:
GPIO is output low
0x01:
GPIO is output high
Proteus-III reference manual version 1.3
© August 2020
www.we-online.com/wireless-connectivity
100