Reference Manual

Table Of Contents
7.7.8 CMD_GPIO_LOCAL_READ_REQ
This command reads 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 or
input pins before.
Format:
Start signal Command Length Block
1
. . . Block
n
CS
0x02 0x27 2 Bytes x Bytes x Bytes 1 Byte
Response (
CMD_GPIO_LOCAL_READ_CNF
):
Start signal Command | 0x40 Length Status Block
1
. . . Block
n
CS
0x02 0x67 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_READ_REQ block structure
Each Block has the following format:
Length GPIO_ID
1
. . . GPIO_ID
n
1 Bytes 1 Byte 1 Byte
Length: Length of the subsequent bytes in this block
GPIO_ID: ID of the GPIO, see chapter
11.1
CMD_GPIO_LOCAL_READ_CNF 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: The remote GPIO is low.
0x01: The remote GPIO is high.
0xFF: Failed reading remote GPIO value.
Proteus-III reference manual version 0.11 © November 2019
www.we-online.com/wireless-connectivity 104