User guide

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide
Rev. 2.1 59
4.11 M1966_GPIO_DATA_COMMAND
Description
GPIO data access command. If the M1966_GPIO_SIGNAL_DIRECTION is set to
M1966_GPIO_DIR_INPUT, perform the M1966_GPIO_DATA_GET returns the logical value of type
M1966_GPIO_DATA_TYPE of the appropriate GPIO as an input. If the
M1966_GPIO_SIGNAL_DIRECTION is set to M1966_GPIO_DIR_OUTPUT, the corresponding GPIO port
outputs the logical value as written.
Prototype
typedef enum
{
M1966_GPIO_DATA_GET = 0, /* Read GPIO data */
M1966_GPIO_DATA_SET = 1 /* Write GPIO data */
}
M1966_GPIO_DATA_COMMAND;
Parameters
Name Value Description
M1966_GPIO_DATA_GET
0
Read GPIO data
M1966_GPIO_DATA_SET
1
Write GPIO data
4.12 M1966_GPIO_DATA_TYPE
Description
GPIO data types this is the GPIO data returned from the M1966_GPIO_DATA_GET access command,
or data to be written to the GPIO port using the M1966_GPIO_DATA_SET access command.
Prototype
typedef enum
{
M1966_GPIO_DATA_LOW = 0, /* GPIO data - low */
M1966_GPIO_DATA_HIGH = 1 /* GPIO data - high */
}
M1966_GPIO_DATA_TYPE;
Parameters
Name Value Description
M1966_GPIO_DATA_LOW
0
GPIO data - low
M1966_GPIO_DATA_HIGH
1
GPIO data - high