Values:
• if
Function
is disconnected, Length is 0x03:
0x00:
value field must use 0x00.
• if
Function
is input, Length is 0x03:
0x00:
GPIO has no pull resistor
0x01:
GPIO has internal pull down resistor
0x02:
GPIO has internal pull up resistor
• if
Function
is output, Length is 0x03:
0x00:
GPIO is output LOW
0x01:
GPIO is output HIGH
CMD_GPIO_LOCAL_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
7.6.1.1. Example: Configure two GPIOs to output high
Configure the GPIOs with ID
0x01
and
0x02
to output high:
Start signal
Command
Length
Block
1
Block
2
CS
0x02
0x25
0x08 0x00
0x03
0x01
0x02 0x01
0x03
0x02
0x02 0x01
0x2C
Response:
Start signal
Command | 0x40
Length
Status
Block
1
Block
2
CS
0x02
0x65
0x07 0x00
0x00
0x02
0x01
0x00
0x02
0x02
0x00
0x63
Configured both GPIOs with success.
Proteus-e reference manual version 0.3
© November 2021
www.we-online.com/wireless-connectivity
61