2 gpio data command, 3 gpio control command, Gpio data command – Maxim Integrated 73M1822/73M1922 Modem CTL Application User Manual

Page 17: Gpio control command, Figure 15: gpio data command logging session, Figure 16: gpio control logging session

Advertising
background image

UG_1x22_056

73M1822/73M1922 Modem CTL Application User Guide

Rev. 1.0

17

2.9.2 GPIO Data Command

Using this data command the GPIO pin can be read (if configured as input) or written into (if configured
as output) with signal level of high or low.

Syntax (GET)

1X22CTL:NN> gpio data get gpioX

Where:

gpioX gpio4,

gpio5, gpio6, or gpio7.

NN

Shows the current active channel ID.

Syntax (SET)

1X22CTL:NN> gpio data set gpioX [low|high]

Where:

gpioX gpio4,

gpio5, gpio6, or gpio7.

NN

Shows the current active channel ID.

The following is a log of the gpio data commands.







Figure 15: GPIO Data Command Logging Session

2.9.3 GPIO Control Command

The GPIO pin is controlled (enable/disable) using this command. Once configured properly using the
config command the GPIO can be set to operational using this command.

Syntax

1X22CTL:NN> gpio [enable|disable] gpioX

Where:

gpioX gpio4,

gpio5, gpio6, or gpio7

NN

Shows the current active channel ID.

The following is a log of the gpio control commands.







Figure 16: GPIO Control Logging Session

Modem CTL:00> gpio data set gpio6 low

Modem CTL:00> gpio data get gpio6

GPIO6 data:LOW

Write “low” signal to GPIO6.

Read the GPIO6 data signal.


Modem CTL:00> gpio enable gpio5


Modem CTL:00> gpio disable gpio6

Enable GPIO5.

Disable GPIO6.

Advertising