AirPrime WP8548 / WP75xx / WP76xx / WP77xx AT Command Reference
258
Proprietary and Confidential - Contents subject to change
4118047
+WIOCFG
GPIO Configuration
Configure a specific GPIO (I/O port) for one of the following uses (indicated by the <func>
parameter):
•
GPIO, accessible via AT commands (<func> = 4)
•
Usage by the embedded Linux host (<func> = 16)
•
Deallocate port (<func> = 0)
•
Antenna select using GPIOs 28–31 (<func> = 0, then !ANTSEL can be used)
Password required:
No
Reset required to apply changes:
No
Persistent across power cycles:
Yes
Usage:
•
Execution (Mark GPIO as unallocated):
AT+WIOCFG=<gpio>,<func>
(Note: <func> must be 0.)
Response:
OK
(If the port configuration works as requested)
Purpose:
Deallocate a GPIO. (Note: This must be done for GPIO28–GPIO31 if
!ANTSEL is to be used for antenna select.)
•
Execution (Allocate GPIO for General use or for Embedded Host use:
AT+WIOCFG=<gpio>,<func>,<dir>,<state>,<pull>,<trigger>,<intrvl>
(Note 1: <func> must be 4 or 16. All other <func> values are assigned by
other commands as noted in the parameter description below.
Response:
OK
(If the port configuration works as requested)
or
ERROR
(If the port is already allocated—the current <func> value is not 0)
Purpose:
Allocate the requested port (<idx>) for use as a GPIO or for control by the
embedded host.
•
Query:
AT+WIOCFG?[<gpio>]
Response:
(if <gpio> is specified>)
+WIOCFG:<gpio>,<func>,<dir>,<state>,<pull>,<trigger>,<intrvl>
OK
or (if <gpio> is not specified, shows all ports (<gpio> values))
+WIOCFG:<gpio>,<func>,<dir>,<state>,<pull>,<trigger>,<intrvl>
...
+WIOCFG:<gpio>,<func>,<dir>,<state>,<pull>,<trigger>,<intrvl>
OK
Purpose:
Report the configuration for the specified port (<gpio>), or for all ports (no
<gpio> specified)
•
Query List:
AT+WIOCFG=?
Purpose:
Display valid execution format and parameter values.
(Continued on next page)
Table 13-2: I/O Command Details (Continued)
Command
Description