7 gpio services, Gpio services, M1x22_gpio_config – Maxim Integrated 73M1822/73M1922 Control Module User Manual

Page 52

Advertising
background image

73M1822/73M1922 Control Module User Guide

UG_1x22_053

52

Rev. 1.0

6.7 GPIO Services

6.7.1 M1X22_GPIO_CONFIG

Description

The ioctl is used to configure the GPIO pin.

#define M1X22_GPIO_CONFIG _IOWR(0xA4, 0xC0, unsigned int)

Prototype

int ioctl (

int chan_fd,

int M1X22_GPIO_CONFIG,

unsigned long param );

Parameters

Data Type

Name

Description

int

chan_fd

Channel descriptor.

int

M1X22_GPIO_CONFIG

I/O control identifier for this operation.

unsigned long param

Pointer to M1X22_GPIO_CONFIG_t.

Return Values

Data Type

Description

unsigned int

0 – Successful.
-1 – Failed to configure GPIO.

Advertising