Gpio Port Configuration; Querying The Direction Of A Gpio Pin; Setting The Direction Of A Gpio Pin; Querying The Output Level Of A Gpio Pin - Lightware MMX4x2-HDMI User Manual

Standalone multimedia matrix switcher
Hide thumbs Also See for MMX4x2-HDMI:
Table of Contents

Advertisement

 
7. LW3 Programmers' Reference
7.16. GPIO Port Configuration
DIFFERENCE:

This section refers to the MMX4x2-HDMI20-USB-L model only.
7.16.1. Querying the Direction of a GPIO Pin
Command and Response
#gpio
ç GET·/MEDIA/GPIO/<port>.Direction
æ pw·/MEDIA/GPIO/<port>.Direction(<dir>)
Parameters
Parameter
Parameter description
<dir>
The direction of the GPIO pin.
Example
ç GET /MEDIA/GPIO/P1.Direction
æ pw /MEDIA/GPIO/P1.Direction=I
7.16.2. Setting the Direction of a GPIO Pin
Command and Response
ç SET·/MEDIA/GPIO/<port>.Direction(<dir>)
æ pw·/MEDIA/GPIO/<port>.Direction(<dir>)
Parameters
See the previous section.
Example
ç SET /MEDIA/GPIO/P1.Direction=I
æ pw /MEDIA/GPIO/P1.Direction=I
#new
Value
Value description
input
I
output
O
Applied firmware package: v1.5.0b8 | LDC software: v2.3.0b1
MMX4x2 series – User's Manual
7.16.3. Querying the Output Level of a GPIO Pin
Command and Response
ç GET·/MEDIA/GPIO/<port>.Output
æ pw·/MEDIA/GPIO/<port>.Output(<value>)
Parameters
Parameter
<value>
The output value of the GPIO pin.
Example
ç GET /MEDIA/GPIO/P1.Direction
æ pw /MEDIA/GPIO/P1.Direction=I
7.16.4. Setting the Output Level of a GPIO Pin
Command and Response
ç SET·/MEDIA/GPIO/<port>.Output(<value>)
æ pw·/MEDIA/GPIO/<port>.Output(<value>)
Parameters
See the previous section.
Example
ç SET /MEDIA/GPIO/P1.Direction=I
æ pw /MEDIA/GPIO/P1.Direction=I
7.16.5. Toggling the Level of a GPIO Pin
The output level can be changed from high to low and low to high by the command below.
Command and Response
ç CALL·/MEDIA/GPIO/<port>:toggle()
æ mO·/MEDIA/GPIO/<port>:toggle
Example
ç CALL /MEDIA/GPIO/P1:toggle()
æ mO /MEDIA/GPIO/P1:toggle
Parameter description
Value
Value description
H
high level
L
low level
101

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MMX4x2-HDMI and is the answer not in the manual?

This manual is also suitable for:

Mmx4x2-ht200Mmx4x2-hdmi-usb20-lMmx4x2 series

Table of Contents