12 gpio related data type and structures, Gpio related data type and structures, M1x22_gpio_number – Maxim Integrated 73M1822/73M1922 Control Module User Manual

Page 72: M1x22_gpio_config_command

Advertising
background image

73M1822/73M1922 Control Module User Guide

UG_1x22_053

72

Rev. 1.0

7.12 GPIO Related Data Type and Structures

7.12.1 M1X22_GPIO_NUMBER

Description

This is the list of GPIO pin definitions.

Prototype

typedef enum
{
M1X22_GPIO_NUM_4 = 0x10, /* GPIO-4 */
M1X22_GPIO_NUM_5 = 0x20, /* GPIO-5 */
M1X22_GPIO_NUM_6 = 0x40, /* GPIO-6 */
M1X22_GPIO_NUM_7 = 0x80 /* GPIO-7 */
}
M1X22_GPIO_NUMBER;

Parameters

Name

Value

Description

M1X22_GPIO_NUM_4

0x10

GPIO4.

M1X22_GPIO_NUM_5

0x20

GPIO5.

M1X22_GPIO_NUM_6

0x40

GPIO6.

M1X22_GPIO_NUM_7

0x80

GPIO7.

7.12.2 M1X22_GPIO_CONFIG_COMMAND

Description

This is the GPIO configuration command. The GPIO can be configured using the
M1X22_GPIO_CONFIG_SET

command. Its configuration can be read using M1X22_GPIO_CONFIG_GET

command. The GPIO must be enabled using the M1X22_GPIO_CONTROL IOCTL for the new
configuration to take effect.

Prototype

typedef enum
{
M1X22_GPIO_CONFIG_GET = 0, /* GPIO config GET */
M1X22_GPIO_CONFIG_SET = 1 /* GPIO config SET */
}
M1X22_GPIO_CONFIG_COMMAND;

Parameters

Name

Value

Description

M1X22_GPIO_CONFIG_GET

0

Read the GPIO configuration.

M1X22_GPIO_CONFIG_SET

1

Write the GPIO configuration.


Advertising