M1x22_gpio_control_type, M1x22_gpio_data_command – Maxim Integrated 73M1822/73M1922 Control Module User Manual

Page 73

Advertising
background image

UG_1x22_053

73M1822/73M1922 Control Module User Guide

Rev. 1.0

73

7.12.3 M1X22_GPIO_CONTROL_TYPE

Description

GPIO control type definitios.

Prototype

typedef enum
{
M1X22_GPIO_CONTROL_DISABLE = 0, /* disable GPIO */
M1X22_GPIO_CONTROL_ENABLE = 1 /* enable GPIO */
}
M1X22_GPIO_CONTROL_TYPE;

Parameters

Name

Value

Description

M1X22_GPIO_CONTROL_DISABLE

0

Disable GPIO.

M1X22_GPIO_CONTROL_ENABLE

1

Enable GPIO.

7.12.4 M1X22_GPIO_DATA_COMMAND

Description

GPIO data access command. If the M1X22_GPIO_SIGNAL_DIRECTION is set to
M1X22_GPIO_DIR_INPUT

, perform the M1X22_GPIO_DATA_GET returns the logical value of type

M1X22_GPIO_DATA_TYPE

of the appropriate GPIO as an input. If the

M1X22_GPIO_SIGNAL_DIRECTION

is set to M1X22_GPIO_DIR_OUTPUT, the corresponding GPIO port

outputs the logical value as written.

Prototype

typedef enum
{
M1X22_GPIO_DATA_GET = 0, /* Read GPIO data */
M1X22_GPIO_DATA_SET = 1 /* Write GPIO data */
}
M1X22_GPIO_DATA_COMMAND;

Parameters

Name

Value

Description

M1X22_GPIO_DATA_GET

0

Read GPIO data.

M1X22_GPIO_DATA_SET

1

Write GPIO data.

Advertising