9 ifx_tapi_event_get, 10 ifx_tapi_version_get, Ifx_tapi_event_get – Maxim Integrated 73M1866B/73M1966B Infineon TAPI High-Level Driver User Manual

Page 15: Ifx_tapi_version_get

Advertising
background image

UG_1x66B_021

73M1866B/73M1966B TAPI High-Level Driver User Guide

Rev. 2.2

15

3.9 IFX_TAPI_EVENT_GET

Description

Read FXO event from the driver.

#define IFX_TAPI_EVENT_GET _IO(IFX_TAPI_IOC_MAGIC, 0xC0)

Prototype

int ioctl (

int dev_fd,

int IFX_TAPI_EVENT_GET,

unsigned long param );


Parameters

Data Type

Name

Description

int

dev_fd

Device descriptor.

int

IFX_TAPI_EVENT_GET

I/O control identifier for this operation.

unsigned long

param

Pointer to an IFX_TAPI_EVENT_t
structure.


Return Values

Data Type

Description

int

IFX_ERROR – Failed to read event.
IFX_SUCCESS – Successful.

3.10 IFX_TAPI_VERSION_GET

Description

Retrieves the TAPI Driver version string.

#define IFX_TAPI_VERSION_GET _IO(IFX_TAPI_IOC_MAGIC, 0x00)

Prototype

int ioctl (

int dev_fd,

int IFX_TAPI_VERSION_GET,

unsigned long param );


Parameters

Data Type

Name

Description

int

dev_fd

Device descriptor.

int

IFX_TAPI_EVENT_GET

I/O control identifier for this operation.

unsigned long

param

Pointer to version character string.


Return Values

Data Type

Description

int

IFX_ERROR – Failed to get TAPI version.
IFX_SUCCESS – Successful.

Advertising