Example: Configure Two Gpios Of The Connected Remote Device To Output High - We PROTEUS-III User Manual

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

Advertisement

WIRELESS CONNECTIVITY & SENSORS
User manual Proteus-III
0x03: GPIO works as PWM
Values:
• if Function is disconnected, Length is 0x03:
0x00: value field must use 0x00.
• if Function is input, Length is 0x03:
0x00: GPIO has no pull resistor
0x01: GPIO has internal pull down resistor
0x02: GPIO has internal pull up resistor
• if Function is output, Length is 0x03:
0x00: GPIO is output LOW
0x01: GPIO is output HIGH
• if Function is PWM, Length is 0x05 (see chapter 11.1 ):
Byte 0 and 1: LSB first uint16 PWM period in ms (1 - 500 ms)
Byte 2: Ratio (0x00=0%,. . . , 0xFE=100%)
CMD_GPIO_REMOTE_WRITECONFIG_CNF 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
Status:
0x00: Success
0x01: Failed
0xFF: Remote configuration not allowed (blocked by the user setting CFG_Flags of the
remote device)
7.7.3.1. Example: Configure two GPIOs of the connected remote device to output high
Configure the GPIOs with ID 0x01 and 0x02 to output high:
Start signal
Command
0x02
0x28
Response:
Order code 2611011024000
Version 1.8 , July 2022
Length
GPIO_ID
0x02
1 Byte
Length
Block
0x08 0x00
0x03 0x01 0x02 0x01
Status
1 Byte
Block
1
0x03 0x02 0x02 0x01
www.we-online.com/wcs
CS
2
0x21
101

Advertisement

Table of Contents
loading

This manual is also suitable for:

Proteus-iii-spi26110110240102611011024000

Table of Contents