Example: Read The Values Of Remote Gpios - We PROTEUS-III User Manual

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

Advertisement

WIRELESS CONNECTIVITY & SENSORS
User manual Proteus-III
• if Function is output or input
0x00: The remote GPIO is LOW.
0x01: The remote GPIO is HIGH.
0xFF: Failed reading remote GPIO value.
• if Function is PWM
0xFF: Failed reading remote GPIO value.
Other: Ratio (0x00=0%,. . . , 0xFE=100%)

7.7.6.1. Example: Read the values of remote GPIOs

Read the value of the GPIOs with GPIO_ID 0x01 and 0x02 of the connected remote device:
Start signal
0x02
Response:
Start signal
Command | 0x40
0x02
0x6A
Successfully read the values of the remote GPIOs with GPIO_ID 0x01 (GPIO is low) and 0x02
(GPIO is high).
Order code 2611011024000
Version 1.8 , July 2022
Command
Length
0x2A
0x03 0x00
Length
Status
0x07 0x00
0x00
Block
CS
1
0x02 0x01 0x02
0x2A
Block
1
0x02 0x01 0x00
0x02 0x02 0x01
www.we-online.com/wcs
Block
CS
2
0x6D
108

Advertisement

Table of Contents
loading

This manual is also suitable for:

Proteus-iii-spi26110110240102611011024000

Table of Contents