User guide

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046
58 Rev. 2.1
4.9 M1966_GPIO_CONFIG_COMMAND
Description
This is the GPIO configuration command. The GPIO can be configured using the
M1966_GPIO_CONFIG_SET command. Its configuration can be read using M1966_GPIO_CONFIG_GET
command. The GPIO must be enabled using the M1966_GPIO_CONTROL ioctl for the new configuration
to take effect.
Prototype
typedef enum
{
M1966_GPIO_CONFIG_GET = 0, /* GPIO config GET */
M1966_GPIO_CONFIG_SET = 1 /* GPIO config SET */
}
M1966_GPIO_CONFIG_COMMAND;
Parameters
Name Value Description
M1966_GPIO_CONFIG_GET
0
Read the GPIO configuration
M1966_GPIO_CONFIG_SET
1
Write the GPIO configuration
4.10 M1966_GPIO_CONTROL_TYPE
Description
GPIO control type definition.
Prototype
typedef enum
{
M1966_GPIO_CONTROL_DISABLE = 0, /* disable GPIO */
M1966_GPIO_CONTROL_ENABLE = 1 /* enable GPIO */
}
M1966_GPIO_CONTROL_TYPE;
Parameters
Name Value Description
M1966_GPIO_CONTROL_DISABLE
0
Disable GPIO.
M1966_GPIO_CONTROL_ENABLE
1
Enable GPIO.