beautypg.com

22 ifx_tapi_fxo_line_mode_set – Maxim Integrated 73M1866B/73M1966B Infineon TAPI High-Level Driver User Manual

Page 25

background image

UG_1x66B_021

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

Rev. 2.2

25

3.22 IFX_TAPI_FXO_LINE_MODE_SET

Description

This service is used to manage (enable/disable) the FXO channel. When disabled, the FXO channel is
inoperative and it does not monitor the physical line for channel events, nor will it detect any incoming ring
signal. However, it can be put back in operation using this ioctl with the “enable” parameter.

#define IFX_TAPI_FXO_LINE_MODE_SET _IOW(IFX_TAPI_IOC_MAGIC, 0xE4, int)

Prototype

int ioctl (

int dev_fd,

int IFX_TAPI_FXO_LINE_MODE_SET,

unsigned long param );


Parameters

Data Type

Name

Description

int

chan_fd

Channel descriptor.

int

IFX_TAPI_FXO_LINE_MODE_SET

I/O control identifier for this operation.

unsigned long param

The parameter points to a
IFX_TAPI_FXO_LINE_MODES_t

structure.


Return Values

Data Type

Description

int

IFX_ERROR – Failed to set line mode.
IFX_SUCCESS – Successful.