beautypg.com

M1966_gpio_data – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual

Page 65

background image

UG_1x66B_015

73M1866B/73M1966B Reference Driver User Guide

Rev. 2.7

65

6.7.3 M1966_GPIO_DATA

Description

This IOCTL is used to read or write data from and to the GPIO pin.

#define M1966_GPIO_DATA _IOWR(0xA4, 0xC2, unsigned int)

Prototype

int ioctl (

int chan_fd,

int M1966_GPIO_DATA,

unsigned long param );


Parameters

Data Type

Name

Description

int

chan_fd

Channel descriptor.

int

M1966_GPIO_DATA

I/O control identifier for this operation.

unsigned long param

Pointer to M1966_GPIO_DATA_t structure.


Return Values

Data Type

Description

unsigned int

0 – Successful.
-1 – Failed to access GPIO data.