• 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
CMD_GPIO_REMOTE_WRITECONFIG_CNF block structure
Each
Block
has the following format:
Length
GPIO_ID
Status
0x02
1 Byte
1 Byte
Length:
Length of the subsequent bytes in this block
GPIO_ID:
ID of the GPIO, see chapter
Status:
0x00:
Success
0x01:
Failed
0xFF:
Remote configuration not allowed (blocked by the user setting
of the
remote device)
7.7.3.1. Example: Configure two GPIOs of the connected remote device to output
high
Configure the GPIOs with ID
0x01
and
0x02
to output high:
Start signal
Command
Length
Block
1
Block
2
CS
0x02
0x28
0x08 0x00
0x03
0x01
0x02 0x01
0x03
0x02
0x02 0x01
0x21
Response:
Start signal
Command | 0x40
Length
Status
Block
1
Block
2
CS
0x02
0x68
0x07 0x00
0x00
0x02
0x01
0x00
0x02
0x02
0x00
0x6E
Configured both GPIOs with success.
Proteus-III reference manual version 1.3
© August 2020
www.we-online.com/wireless-connectivity
99