Reference Manual

Table Of Contents
7.7.7 CMD_GPIO_LOCAL_WRITE_REQ
This command writes the free GPIOs of the local device. This command can be only run
successfully if the respective pins of the local device have been configured as output pins
before.
Format:
Start signal Command Length Block
1
. . . Block
n
CS
0x02 0x26 2 Bytes x Bytes x Bytes 1 Byte
Response (
CMD_GPIO_LOCAL_WRITE_CNF
):
Start signal Command | 0x40 Length Status Block
1
. . . Block
n
CS
0x02 0x66 2 Bytes 1 Byte x Bytes x Bytes 1 Byte
Status:
0x00: Request received and processed
0x01: Operation failed
0xFF: Operation not permitted (i.e. no device connected via BLE)
CMD_GPIO_LOCAL_WRITE_REQ block structure
Each Block has the following format:
Length GPIO_ID Value
0x02 1 Byte 1 Byte
Length: Length of the subsequent bytes in this block
GPIO_ID: ID of the GPIO, see chapter
11.1
Value:
0x00: Set GPIO to low
0x01: Set GPIO to high
CMD_GPIO_LOCAL_WRITE_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
Proteus-III reference manual version 0.11 © November 2019
www.we-online.com/wireless-connectivity 102