LE910-SKG AT commands reference guide
80437ST10619A Rev.1 – 2014-09-16
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 148 of 273
#GPIO - General Purpose Input/Output Pin Control
respectively (see Note).
<save>
- GPIO pin save configuration
0 – pin configuration is not saved
1 – pin configuration is saved
Note: when <save> is omitted the configuration is stored only if user set or reset
ALTx function on <dir> parameter.
Note: if values of
<dir>
is set in output and save omitted then it is set automatically
in input on next power cycle.
Note: when
<mode>=2
(and
<dir>
is omitted) the command reports the direction
and value of pin
GPIO<pin>
in the format:
#GPIO: <dir>,<stat>
where:
<dir>
- current direction setting for the
GPIO<pin>
<stat>
logic value read from pin
GPIO<pin>
in the case the pin
<dir>
is set to
input;
logic value present in output of the pin
GPIO<pin>
in the case the pin
<dir>
is currently set to output;
no meaning value for the pin
GPIO<pin>
in the case the pin
<dir>
is set to
alternate function.
Note: “ALT1” value is valid only for following pins:
GPIO1
: alternate function is “Stat Led”;
Note: while using the pins in the alternate function, the GPIO read/write access
to that pin is not accessible and shall be avoided.
Note: Alarm Pin can be also configured through
#ALARMPIN
command
AT#GPIO?
Read command reports the read direction and value of all
GPIO
pins, in the format:
#GPIO: <dir>,<stat>[<CR><LF>#GPIO: <dir>,<stat>[…]]
where:
<dir>
- as seen before
<stat>
- as seen before
AT#GPIO=?
Test command reports the supported range of values of the command parameters
<pin>
,
<mode>,
<dir>
,
<save>
Example
AT#GPIO=3,0,1
OK
AT#GPIO=3,2
#GPIO: 1,0
Summary of Contents for LE910-SKG
Page 1: ......