1 m1x66_handle_t, M1x66_handle_t, M1x66_handle – Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual
Page 42

73M1866B/73M1966B FXOAPI User Guide
UG_1x66B_046
42
Rev. 2.1
3.1 M1x66_HANDLE_t
Description
The device or channel handle is a pointer to a device or channel control data structure where information
pertaining to device or channel is being kept. This control data structure is created when the device or
channel is opened and is used by the API internal subsystem to indentify the device or channel until it is
closed.
Prototype
/*
**************************************************************************
** Device/Channel Control block
*************************************************************************/
typedef struct {
int chanNum;
int fd;
void (*eventCallback)(M1x66_EVENT_ID,
unsigned int,
unsigned int,
unsigned int,
unsigned int,
unsigned int);
int initialized;
}
m1966_DevChanHandle;
/* Device or channel handle */
typedef m1966_DevChanHandle *M1x66_HANDLE_t;
Parameters
Data Type
Name
Description
int
chanNum
Device or channel number.
int
fd
Device or channel corresponding file descriptor.
void
(*eventCallback)()
An event callback function pointer, used only for device.
int
Initialized
Initialization flag.