EasyManua.ls Logo

Sierra Wireless FX30 - Page 67

Sierra Wireless FX30
81 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AT Commands Reference
Rev 4 March 2019 67 41110030
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,2125,3258
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
Table C-2: FX30 AT Commands
Command Description

Table of Contents

Related product manuals