User Manual

73M1866B/73M1966B FXOCTL Application User Guide UG_1x66B_009
16 Rev. 4.1
2.9 GPIO Management
The FXOCTL provides three commands for managing the GPIO:
1. Config configures the GPIO pin for operation.
2. Control enable/disable the GPIO pin.
3. Data accessing GPIO data.
2.9.1 GPIO Config Command
The GPIO pin must be configured properly before it can be used. Using this command the user can
display the GPIO configuration (GET), or configure the GPIO pin for the desired operation (SET).
Configuring the GPIO is simple, it requires only up to two parameters:
1. Signal direction (input or output).
2. If configured as input the GPIO will generate interrupt upon rising or falling edge signal this
parameter selects the edge transition. For output direction this parameter is not relevant.
Syntax (GET)
FXOCTL:NN> gpio config get gpioX
Where: gpioX gpio5, gpio6, or gpio7.
NN Shows the current active channel ID.
Syntax (SET)
FXOCTL:NN> gpio config set gpioX [input|output] [rising|falling]
Where: gpioX gpio5, gpio6, or gpio7.
NN Shows the current active channel ID.
The following is a log of the gpio config commands.
Figure 14: GPIO Config GET/SET Command Logging Session
FXOCTL:00> gpio config get gpio5
GPIO-5:
Status : DISABLE
Direction: INPUT
Polarity : FALLING
FXOCTL:00> gpio config set gpio6 input rising
Display configuration for GPIO5.
GPIO5 configured as input, interrupt
triggered on falling edge. The GPIO is
current disabled.
Configure GPIO6 as input,
with rising edge triggered.