Cmd_Gpio_Local_Write_Req - We PROTEUS-III User Manual

Hide thumbs Also See for PROTEUS-III:
Table of Contents

Advertisement

WIRELESS CONNECTIVITY & SENSORS
User manual Proteus-III

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
0x02
Response ( CMD_GPIO_LOCAL_WRITE_CNF ):
Start signal
Command | 0x40
0x02
Status:
0x00: Request received and processed
0x01: Operation failed
0xFF: Operation not permitted (i.e. no device connected via Bluetooth
CMD_GPIO_LOCAL_WRITE_REQ block structure
Each Block has the following format:
Length: Length of the subsequent bytes in this block
GPIO_ID: ID of the GPIO, see chapter 11.2
Value:
• if Function is output
0x00: Set GPIO to LOW
0x01: Set GPIO to HIGH
• if Function is PWM
Byte 0: Ratio (0x00=0%,. . . , 0xFE=100%)
CMD_GPIO_LOCAL_WRITE_CNF block structure
Each Block has the following format:
Order code 2611011024000
Version 1.8 , July 2022
Command
Length
0x26
2 Bytes
Length
0x66
2 Bytes
Length
GPIO_ID
0x02
1 Byte
Block
. . .
Block
1
x Bytes
x Bytes
Status
Block
. . .
1
1 Byte
x Bytes
Value
1 Byte
www.we-online.com/wcs
CS
n
1 Byte
Block
CS
n
x Bytes
1 Byte
®
LE)
109

Advertisement

Table of Contents
loading

This manual is also suitable for:

Proteus-iii-spi26110110240102611011024000

Table of Contents