
2 – CLI Commands
100-8005-101G Airborne™ Product Family CLI Reference Guide Page 37
Quatech, Inc. Confidential
Command CLI Arguments Ln Description
io-dir-g [integer] L2 Sets the direction of port G I/O bits to input or output.
8 bits
1 = input
0 = output
A bit set as an input is an analog input and adc-read is used
to read the bit value. Setting port G3 as output has no effect.
Default is all inputs.
io-dir
e | g<portid> [in | out]
L2 Sets the direction of port to input or output.
Applies setting dynamically without requiring a restart. Bit
restrictions are the same as for the io-dir-e and io-dir-g
commands.
adc-read g<portid> L2 Reads analog input port. The returned value’s range is an
unsigned integer 0x0000 (0) to 0x03FF (1023), in integer
steps. Valid if bit position is set as a port G input.
<port id> is 0 through 7. If the port is set as an output using
io-dir-g and as a logic 0 output, reading returns result code
0. If set as a logic 1 output, reading returns a result close to
1023.
Comentarios a estos manuales