Using gpio ports, Table 40, Gpio read/write cli commands – B&B Electronics WLNN-AN(ER,SE,SP.EK)-DP551 - Manual User Manual
Page 92: 4 using gpio ports

92
Airborne Enterprise CLI Reference Manual
18.4 Using GPIO ports
Once enabled the GPIO ports can written to or read using the CLI interface.
Table 40 shows the commands and their use.
Table 40 - GPIO Read/Write CLI Commands
Command
Description
io-read <portID>
Reads the state of the GPIO pin identified by the
<portID>
.
The <portID> is a combination of the port name (g or f)
and the bit to read (0 through 7), for instance g0 would
read the first pin on port g.
The command requires the <portID> be set to input.
io-write <portID> <state>
Writes the value of <state> to the GPIO pin identified by
the <portID>.
The <portID> is a combination of the port name (g or f)
and the bit to read (0 through 7), for instance g0 would
read the first pin on port g.
The <state> can equal 1 or 0.
The command requires the <portID> be set to output.