User Manual

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.