M1x22_gpio_data_t, M1x22_gpio_control_t – Maxim Integrated 73M1822/73M1922 Control Module User Manual

Page 76

Advertising
background image

73M1822/73M1922 Control Module User Guide

UG_1x22_053

76

Rev. 1.0

7.12.9 M1X22_GPIO_DATA_t

Description

This structure is used by the M1X22_GPIO_DATA IOCTLs to read or write GPIO signal from or to the
GPIO pin.

Prototype

typedef struct gpio_data
{
M1X22_GPIO_DATA_COMMAND command; /* command */
M1X22_GPIO_NUMBER gpio; /* GPIO number */
M1X22_GPIO_DATA_TYPE data; /* data */
}
M1X22_GPIO_DATA_t;

Parameters

Data Type

Name

Description

M1X22_GPIO_DATA_COMMAND

command

Read or Write command.

M1X22_GPIO_NUMBER

gpio

GPIO number.

M1X22_GPIO_DATA_TYPE

data

Signal level to be written to the GPIO pin.

7.12.10 M1X22_GPIO_CONTROL_t

Description

This structure is used by the M1X22_GPIO_CONTROL IOCTLs to enable or disable the operation of the
GPIO.

Prototype

typedef struct gpio_control
{
M1X22_GPIO_CONTROL_TYPE control; /* control - enable/disable */
M1X22_GPIO_NUMBER gpio; /* gpio */
}
M1X22_GPIO_CONTROL_t;

Parameters

Data Type

Name

Description

M1X22_GPIO_CONTROL_TYPE

control

Control – enable/disable GPIO.

M1X22_GPIO_NUMBER

gpio

GPIO number.

Advertising