Multitech CDMA Guía de usuario Pagina 105

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 249
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 104
CUSTOM AT COMMANDS
105 AT Commands for EV-DO-EV3 Modems
General Purpose Input/Output Pin Control #GPIO
Execute command sets the value of the general purpose output pin GPIO<pin> according to <dir> and <mode>
parameter.
Not all configurations for the three parameters are valid.
Read command reports the read direction and value of all GPIO pins, in the format:
#GPIO: <dir>,<stat>[<CR><LF>#GPIO: <dir>,<stat>[…]]
where the sections that follow describe values for <dir> and <stat>.
Test command reports the supported range of values of the command parameters <pin>, <mode> and <dir>.
Syntax
Command Command type
AT#GPIO=[<pin>,<mode>[,<dir>]]
Execute
AT#GPIO? Read
AT#GPIO=? Test
Parameters and Values
<pin> GPIO pin number. Range is from 1 to a value that depends on the hardware.
SocketModem supports GPIO0 to GPIO4.
MTPCIE-x supports GPIO0 to GPIO3.
<mode> <mode> - Meaning depends on <dir> setting:
0 No meaning if <dir>=0 - INPUT
- Output pin cleared to 0 (Low) if <dir>=1 - OUTPUT.
- No meaning if <dir>=2 - ALTERNATE FUNCTION .
1 No meaning if <dir>=0 - INPUT
- Output pin set to 1 (High) if <dir>=1 - OUTPUT.
- No meaning if <dir>=2 - ALTERNATE FUNCTION.
2 Reports the read value from the input pin if <dir>=0 - INPUT
- Reports the read value from the input pin if <dir>=1 - OUTPUT.
- Reports a no meaning value if <dir>=2 - ALTERNATE FUNCTION.
<dir> GPIO pin direction:
0 - pin direction is INPUT.
1 - pin direction is OUTPUT.
2 - pin direction is ALTERNATE FUNCTION. See Notes section.
Notes
When <mode>=2 (and <dir> is omitted) the command reports the direction and value of pin GPIO<pin> in
the format:
#GPIO: <dir>,<stat>
Vista de pagina 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 248 249

Comentarios a estos manuales

Sin comentarios