Parameters and values, Notes – Synaccess Networks NP-0801DTM User Manual

Page 157

Advertising
background image

CUSTOM AT COMMANDS 

 

 

157 

HSPA+ AT Commands Reference Guide

 

Parameters and Values 

<pin> 

GPIO pin number. Range is from 1 to a value that depends on the hardware. 
New Socket modem support GPIO0 to GPIO3. 
New MTPCIE‐x support GPIO1 to GPIO3. 

<mode>

 

<mode> ‐ Meaning depends on <dir> setting: 

No meaning if <dir>=0 ‐ INPUT 
     ‐ output pin cleared to 0 (Low) if <dir>=1 ‐ OUTPUT 
     ‐ no meaning if <dir>=2 ‐ ALTERNATE FUNCTION 
     ‐ no meaning if <dir>=3 – TRISTATE PULL DOWN 

No meaning if <dir>=0 ‐ INPUT 
     ‐ output pin set to 1 (High) if <dir>=1 ‐ OUTPUT 
     ‐ no meaning if <dir>=2 ‐ ALTERNATE FUNCTION 
     ‐ no meaning if <dir>=3 – TRISTATE PULL DOWN 

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 
     ‐ Reports a no meaning if <dir>=3 – TRISTATE PULL DOWN 

<dir> 

GPIO pin direction 
  0 ‐ pin direction is INPUT  
  1 ‐ pin direction is OUTPUT 
  2 ‐ pin direction is ALTERNATE FUNCTION. See Notes section.  
  3 ‐ pin is set to PULL DOWN. 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> 

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 or Tristate pull down 

„

"ALTERNATE FUNCTION" value is valid only for following pins: 

ƒ

GPIO4 ‐ alternate function is “RF Transmission Control” 

ƒ

GPIO5 ‐ alternate function is “RF Transmission Monitor”  

ƒ

GPIO6 ‐ alternate function is "Alarm Output" (see +CALA) 

ƒ

GPIO7 ‐ alternate function is "Buzzer Output" (see #SRP) 

„

 While using the pins in the alternate function, the GPIO read/write access to that pin is not accessible Avoid 
access. 

Advertising