M1x22_gpio_data_type, M1x22_gpio_signal_direction – Maxim Integrated 73M1822/73M1922 Control Module User Manual

Page 74

Advertising
background image

73M1822/73M1922 Control Module User Guide

UG_1x22_053

74

Rev. 1.0

7.12.5 M1X22_GPIO_DATA_TYPE

Description

GPIO data types – this is the GPIO data returned from the M1X22_GPIO_DATA_GET access command,
or data to be written to the GPIO port using the M1X22_GPIO_DATA_SET access command.

Prototype

typedef enum
{
M1X22_GPIO_DATA_LOW = 0, /* GPIO data - low */
M1X22_GPIO_DATA_HIGH = 1 /* GPIO data - high */
}
M1X22_GPIO_DATA_TYPE;

Parameters

Name

Value

Description

M1X22_GPIO_DATA_LOW

0

GPIO data – low.

M1X22_GPIO_DATA_HIGH

1

GPIO data – high.

7.12.6 M1X22_GPIO_SIGNAL_DIRECTION

Description

GPIO pin signal direction. This control bit is used to designate the GPIO pin as either input or output.

Prototype

typedef enum {
M1X22_GPIO_DIR_INPUT = 0, /* GPIO pin signal direction – INPUT */
M1X22_GPIO_DIR_OUTPUT = 1 /* GPIO pin signal direction - OUTPUT */
}
M1X22_GPIO_SIGNAL_DIRECTION;

Parameters

Name

Value

Description

M1X22_GPIO_DIR_INPUT

0

GPIO pin signal direction – INPUT.

M1X22_GPIO_DIR_OUTPUT

1

GPIO pin signal direction – OUTPUT.


Advertising