7.7. Switching GPIOs by remote control
This chapter contains the commands to use the GPIO feature of the Proteus-III. Please refer
to chapter
for a detailed description.
7.7.1. CMD_GPIO_LOCAL_WRITECONFIG_REQ
This command configures the free GPIOs of the radio module. This is necessary to allow
local and remote GPIO control. As the configuration is stored in flash, it is retained after
restarting the device.
The flash memory used to store these settings has a limited count of write
cycles of minimum 10.000. Try to avoid performing periodic
as each command will use one write cycle.
Format:
Start signal
Command
Length
Block
1
. . .
Block
n
CS
0x02
0x25
2 Bytes
x Bytes
x Bytes
1 Byte
Response (
CMD_GPIO_LOCAL_WRITECONFIG_CNF
Start signal
Command | 0x40
Length
Status
Block
1
. . .
Block
n
CS
0x02
0x65
2 Bytes
1 Byte
x Bytes
x Bytes
1 Byte
Status:
0x00:
Request received and processed
0x01:
Operation failed
0xFF:
Operation not permitted
CMD_GPIO_LOCAL_WRITECONFIG_REQ block structure
Each
Block
has the following format:
Length
GPIO_ID
Function
Value
0x03
1 Byte
1 Byte
1 Byte
Length:
Length of the subsequent bytes in this block
GPIO_ID:
ID of the GPIO, see chapter
Function:
0x01:
GPIO works as input
Proteus-III reference manual version 1.3
© August 2020
www.we-online.com/wireless-connectivity
94