Reference Manual

Table Of Contents
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
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
11.1
Status:
0x00: Success
0x01: Failed
7.7.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-III reference manual version 0.11 © November 2019
www.we-online.com/wireless-connectivity 91