beautypg.com

Io-dir – B&B Electronics WLNN-AN(ER,SE,SP.EK)-DP551 - Manual User Manual

Page 158

background image

158

Airborne Enterprise CLI Reference Manual

io-dir

Command

io-dir

Arguments

f | g [in | out]

Security

Level

2 (data)

Device Type All

Default

f in | g in

Description

Sets the direction of the indicated GPIO port dynamically without restarting the module.

The command requires two parameters the first identifies the GPIO port and bit to be configured the
second determines the default direction of the port. The command acts upon all GPIO in the identified

port. For example:

io-dir f1 out

: Sets the f port first bit to be an output

io-dir g7 in

: Sets the g port seventh bit to be input

The effects of this command are temporary and will not be persistent across a restart. If the port and
bit direction are required to persist across a power cycle or restart use the io-dir-f and io-dir-g
commands.

The Port can be read or written to using the io-read and io-write commands.

Port assignment and exceptions:

f0

Read or Write (POST output)

g0

Read or Write

f1

Read or Write

g1

Read or Write

f2

Read or Write (RF_LINK output)

g2

Read or Write

f3

Read or Write (WLN_CFG output)

g3

N/A

f4

Read or Write

g4

N/A

f5

Read or Write

g5

N/A

f6

Read or Write (LED_CON output)

g6

Read or Write

f7

Read or Write

g7

Read or Write

When the LED signal has not been disabled those bits indicated as LED Outputs can only be read in

order to determine the state of the LED output (See WLNN DP500 Family Databook for details). To
disable the LED‟s use one of the following commands post-led, rf-link-led, wln-cfg-led and
conn-led

.

Any attempt to set an unavailable port or configure a port to an illegal state will be ignored.