M1x22_event_get – Maxim Integrated 73M1822/73M1922 Control Module User Manual

Page 33

Advertising
background image

UG_1x22_053

73M1822/73M1922 Control Module User Guide

Rev. 1.0

33

6.2.5 M1X22_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 M1X22_EVENT_GET _IOWR(0xA4,0xB1,unsigned int)

Prototype

int ioctl (

int dev_fd,

int M1X22_EVENT_GET,

unsigned long param );


Parameters

Data Type

Name

Description

int

dev_fd

Device descriptor.

int

M1X22_EVENT_GET I/O control identifier for this operation.

unsigned long

param

Pointer to structure M1X22_MDM_EVENT_t (see

Section 5.1

).


Return Values

Data Type

Description

int

0 – Successful.
-EFAULT Failed to retrieve event data.

Advertising