9 m1966_gpio_config_command, 10 m1966_gpio_control_type, M1966_gpio_config_command – Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual
Page 58: M1966_gpio_control_type

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.