beautypg.com

3 ifx tapi ioctl commands description, Ifx tapi ioctl commands description, Table 1: summary of ifx tapi ioctls – Maxim Integrated 73M1866B/73M1966B Infineon TAPI High-Level Driver User Manual

Page 8

background image

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

UG_1x66B_021

8

Rev. 2.2

3 IFX TAPI IOCTL Commands Description

Once the driver is successfully opened the application can control the operation of the device and the
FXO channel. The application in user space communicates with the driver via standard Linux driver
interface IOCTL calls. The following sections describe the detail of each IOCTL command.

Some commands pertain to device level configuration such as PCM interface parameters; these must be
called using device descriptor, while others are channel level commands and must be called using
specific channel descriptor, if more than one channel is active. Table 1 provides a summary of the
IOCTLs.

Table 1: Summary of IFX TAPI IOCTLs

IOCTL Name

Description

Descriptor

IFX_TAPI_CH_INIT

Initializing FXO channel for operation.

Channel

IFX_TAPI_PCM_IF_CFG_SET

Set PCM interface configuration.

Device

IFX_TAPI_PCM_CFG_SET

Set PCM configuration.

Channel

IFX_TAPI_PCM_CFG_GET

Retrieve PCM configuration.

Channel

IFX_TAPI_PCM_ACTIVATION_SET

Activate/Deactivate PCM channel.

Channel

IFX_TAPI_PCM_ACTIVATION_GET

Retrieve PCM activation state.

Channel

IFX_TAPI_EVENT_ENABLE

Enable FXO event detection.

Channel

IFX_TAPI_EVENT_DISABLE

Disable FXO event detection.

Channel

IFX_TAPI_EVENT_GET

Retrieve FXO event.

Device

IFX_TAPI_VERSION_GET

Retrieve driver version number.

Device

IFX_TAPI_DEBUG_REPORT_SET

Set driver debug message trace mask.

Device

IFX_TAPI_LINE_TYPE_SET

Set line type – must be FXO only.

Channel

IFX_TAPI_PHONE_VOLUME_SET

Set speaker phone/micro phone volume.

Channel

IFX_TAPI_FXO_HOOK_SET

Issue on/off hook.

Channel

IFX_TAPI_FXO_FLASH_SET

Issue flash hook.

Channel

IFX_TAPI_FXO_FLASH_CFG_SET

Configure FXO hook flash parameter.

Channel

IFX_TAPI_FXO_BAT_ GET

Retrieve battery status.

Channel

IFX_TAPI_FXO_APOH_ GET

Retrieve APOH status.

Channel

IFX_TAPI_FXO_RING_ GET

Retrieve ring status.

Channel

IFX_TAPI_FXO_POLARITY_ GET

Retrieve line polarity status.

Channel

IFX_TAPI_LASTERR

Retrieve driver last error code.

Device

IFX_TAPI_FXO_LINE_MODE_SET

Enable/Disable FXO channel.

Channel