Sierra Wireless FX30S User Guide
Rev 2 Mar.18
36
41110485
AT!FWD?GPIOCFG
Displays the direction and pull settings
for exported GPIOs, as read from
sysfs.
If the GPIO is not exported, this
command reports “NOT SET”. It does
not export the GPIO.
To query:
AT!FWD?GPIOCFG,<GPIO #>
where <GPIO #> is any available GPIO, i.e. 2,7,8,13,21-25,32-66
Returned values are:
•
NOT SET (if GPIO has not been exported)
•
DIRECTION: <IN|OUT>
•
PULL: <UP|DOWN> (if GPIO has been exported)
•
ERROR (if invalid GPIO #)
Example:
AT!FWD?GPIOCFG,2
DIRECTION: IN
PULL: UP
OK
AT!FWD?GPIOCFG,8
NOT SET
OK
AT!FWD?GPIOCFG,10
ERROR
AT!FWD=GPIOCFG
Configures the direction and optionally
the pull setting for any configurable
GPIO.
This command exports a GPIO if it is
not currently exported.
Setting is runtime configurable only—
this setting is NOT persistent through
reboot.
To set:
AT!FWD=GPIOCFG,<GPIO #>,<direction>[,<pull>]
AT!FWD=GPIOCFG,<GPIO #>,<direction>[,<value>]
where:
•
<GPIO #> is any configurable GPIO 8,13,25,33,42
•
<direction> is either IN or OUT (case insensitive)
•
<pull> (optional) is either UP or DOWN (case insensitive) and only valid if
<direction> is IN
•
<value> (optional) is either 0 or 1 to set the initial output value of the pin; it
is only valid if <direction> is OUT. If omitted, a default value of 0 is used.
Returned values are:
•
OK (if GPIO is configured as requested)
•
ERROR (if invalid GPIO #, direction or optional pull or value)
Example:
AT!FWD=GPIOCFG,8,OUT
OK
AT!FWD=GPIOCFG,8,OUT,1
OK
AT!FWD=GPIOCFG,13,IN,UP
OK
AT!FWD=GPIOCFG,8,INPUT
ERROR
USB AT Commands
Table 2-6: FX30S AT Commands
Command
Description