Reference Driver
73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015
86 Rev. 2.7
7.12.9 M1966_GPIO_DATA_t
Description
This structure is used by the M1966_GPIO_DATA IOCTLs to read or write GPIO signal from or to the
GPIO pin.
Prototype
typedef struct gpio_data
{
M1966_GPIO_DATA_COMMAND command; /* command */
M1966_GPIO_NUMBER gpio; /* GPIO number */
M1966_GPIO_DATA_TYPE data; /* data */
}
M1966_GPIO_DATA_t;
Parameters
Data Type Name Description
M1966_GPIO_DATA_COMMAND
command
Read or Write command.
M1966_GPIO_NUMBER
gpio
GPIO number.
M1966_GPIO_DATA_TYPE
data
Signal level to be written to the GPIO pin.
7.12.10 M1966_GPIO_CONTROL_t
Description
This structure is used by the M1966_GPIO_CONTROL IOCTLs to enable or disable the operation of the
GPIO.
Prototype
typedef struct gpio_control
{
M1966_GPIO_CONTROL_TYPE control; /* control - enable/disable */
M1966_GPIO_NUMBER gpio; /* gpio */
}
M1966_GPIO_CONTROL_t;
Parameters
Data Type Name Description
M1966_GPIO_CONTROL_TYPE
control
Control – enable/disable GPIO.
M1966_GPIO_NUMBER
gpio
GPIO number.