beautypg.com

12 gpio related data type and structures, Gpio related data type and structures, M1966_gpio_number – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual

Page 82: M1966_gpio_config_command

background image

73M1866B/73M1966B Reference Driver User Guide

UG_1x66B_015

82

Rev. 2.7

7.12 GPIO Related Data Type and Structures

7.12.1 M1966_GPIO_NUMBER

Description

This is the list of GPIO pin definitions.

Prototype

typedef enum
{
M1966_GPIO_NUM_5 = 0x20, /* GPIO-5 */
M1966_GPIO_NUM_6 = 0x40, /* GPIO-6 */
M1966_GPIO_NUM_7 = 0x80 /* GPIO-7 */
}
M1966_GPIO_NUMBER;

Parameters

Name

Value

Description

M1966_GPIO_NUM_5

0x20

GPIO5 – pin 25 of 73M1906B 32-pin QFN.

M1966_GPIO_NUM_6

0x40

GPIO6 – pin 32 of 73M1906B 32-pin QFN.

M1966_GPIO_NUM_7

0x80

GPIO7 – pin 1 of 73M1906B 32-pin QFN.

7.12.2 M1966_GPIO_CONFIG_COMMAND

Description

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

command. Its configuration can be read using M1966_GPIO_CONFIG_GET

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

Prototype

typedef enum
{
M1966_GPIO_CONFIG_GET = 0, /* GPIO config GET */
M1966_GPIO_CONFIG_SET = 1 /* GPIO config SET */
}
M1966_GPIO_CONFIG_COMMAND;

Parameters

Name

Value

Description

M1966_GPIO_CONFIG_GET

0

Read the GPIO configuration

M1966_GPIO_CONFIG_SET

1

Write the GPIO configuration