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 (
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 Bluetooth
®
LE)
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
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 1.3
© August 2020
www.we-online.com/wireless-connectivity
106