Gpio Settings; Query The State Of A Gpio Pin; Set The State Of A Gpio Pin - Lightware HDMI-TPS-TX210 User Manual

Hide thumbs Also See for HDMI-TPS-TX210:
Table of Contents

Advertisement

7.6. GPIO settings

7.6.1. Query the state of a GPIO pin

Description: The state of a GPIO pin can be queried as follows.
Command {GPIO<pin_nr>=?}
Response (GPIO<pin_nr>=<direction>;
Legend:
Explanation: GPIO pin #1 is input, input level is high.

7.6.2. Set the state of a GPIO pin

Description: The state of a GPIO pin can be set as follows.
Command {GPIO<pin_nr>=<direction>;
Response (GPIO<pin_nr>=<direction>;
Legend: See section
Explanation: GPIO pin #1 is set as input, input level is low.
Page 74 / 122
Format
<level>)CrLf
<pin_nr>:
GPIO pin number (1-7).
<direction>:
Direction of the pin: I = input, O = output
<level>:
H = high level, L = low level.
Format
<level>}
<level>)CrLf
7.6.1
on page 74.
Example
→ {gpio1=?}
← (GPIO1=I;H)CrLf
Example
→ {gpio1=i;l}
← (GPIO1=I;L)CrLf
Section 7. LW2 Programmer's reference

Advertisement

Table of Contents
loading

Table of Contents