M1966_event_get – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual
Page 43
UG_1x66B_015
73M1866B/73M1966B Reference Driver User Guide
Rev. 2.7
43
6.2.5 M1966_EVENT_GET
Description
Returns an event from the FIFO queue. The driver records various events in its internal FIFO queue.
Access to this event on this queue by user application is accomplished using this command, and the
event will be removed permanently from the queue.
#define M1966_EVENT_GET _IOWR(0xA4,0xB1,unsigned int)
Prototype
int ioctl (
int dev_fd,
int M1966_EVENT_GET,
unsigned long param );
Parameters
Data Type
Name
Description
int
dev_fd
Device descriptor.
int
M1966_EVENT_GET I/O control identifier for this operation.
unsigned long
param
Pointer to structure M1966_FXO_EVENT_t (see
).
Return Values
Data Type
Description
int
0 – Successful.
-EFAULT Failed to retrieve event data.