Host Protocols Direct Protocol CONTROL class IOs and UI SET GPIOS
April 13, 2023 at 2:39 AMSET_GPIOS
Role
Read the current status of the device’s GPIO pins.
Remark
The host application shall rely on SET_GPIOS to get the actual number of GPIO pins. Not all devices have GPIO pins.
Pay attention that the GPIO pins are likely to be multiplexed with the 4-LED ramp (see SET_LEDS).
Access condition
Free.
Command
Field | Value |
---|---|
CLA | 58 (CONTROL) |
INS | 16 |
Data | New status of all GPIO pins (one byte per GPIO pin) |
Values
Every byte shall take one of the following values:
Value | Explanation |
---|---|
00 |
Do not change the pin configuration |
0F |
Configure the pin as an input |
80 |
Configure the pin as output and set its output level to LOW |
81 |
Configure the pin as output and set its output level to HIGH |
8F |
Configure the pin as a LED output |
Any other value would be ignored.
Response
None