beautypg.com

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

background image

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

Reads the state of the GPIO pin identified by the

.

The 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 be set to input.

io-write

Writes the value of to the GPIO pin identified by
the .

The 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 can equal 1 or 0.

The command requires the be set to output.