Multitech MTCMR-E1 Manuel d'utilisateur Page 94

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 119
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 93
Chapter 15 GPIO AT Commands
94 Universal IP AT Commands Reference Guide
#GPIOR Read the Current Register Status of the Specified GPIO Pin
Description: The current status of the specific GPIO pin is displayed according to its configuration.
Syntax: AT#GPIOR=<parameter>
Values: 1 GPIO Port 1
2 GPIO Port 2
3 GPIO Port 3
4 GPIO Port 4
5 GPIO Port 5
Responses: \r\n#GPIOR: VALUE1,VALUE2\r\n
\r\nOK\r\n
\r\nERROR\r\n
Examples: send: AT#GPIOR=1\r
reply: \r\n#GPIOR: 1,1\r\n
reply: \r\nOK\r\n
#GPIOTRIGGER Configure the GPIO pin and trigger type
Description: Configure the GPIO pin and trigger type.
Syntax: AT#GPIOTRIGGER=<parameter1>,<parameter2>
Values: parameter 1 (GPIO pin)
1 - GPIO Port 1
2 - GPIO Port 2
3 - GPIO Port 3
4 - GPIO Port 4
5 - GPIO Port 5
parameter 2 (trigger type)
0 - Trigger at (or above for analog) (default for backwards compatibility)
1 - Trigger on active to inactive
2 - Trigger on inactive to active
3 - Trigger on both edges
4 - Trigger at (or below for analog)
(Default is 0)
Responses: \r\n#GPIOTRIGGER: VALUE1,VALUE2\r\n
\r\nOK\r\n
\r\nERROR\r\n
Examples: send: AT#GPIOTRIGGER=1,1\r
reply: \r\nOK\r\n
send: AT#GPIOTRIGGER=1\r
reply: \r\n#GPIOTRIGGER: 1,1\r\n
reply: \r\nOK\r\n
send: AT#GPIOTRIGGER=2,2\r
reply: \r\nOK\r\n
send: AT#GPIOTRIGGER=2\r
reply: \r\n#GPIOTRIGGER: 2,2\r\n
reply: \r\nOK\r\n
Vue de la page 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 118 119

Commentaires sur ces manuels

Pas de commentaire