13 ifx_tapi_phone_volume_set, 14 ifx_tapi_fxo_hook_set, Ifx_tapi_fxo_hook_set – Maxim Integrated 73M1866B/73M1966B Infineon TAPI High-Level Driver User Manual
Page 18

73M1866B/73M1966B TAPI High-Level Driver User Guide
UG_1x66B_021
18
Rev. 2.2
3.13 IFX_TAPI_PHONE_VOLUME_SET
Description
Sets the speaker phone and microphone volume settings.
#define IFX_TAPI_PHONE_VOLUME_SET _IOW(IFX_TAPI_IOC_MAGIC, 0x42, int)
Prototype
int ioctl (
int chan_fd,
int IFX_TAPI_PHONE_VOLUME_SET,
unsigned long param );
Parameters
Data Type
Name
Description
int
chan_fd
Channel descriptor.
int
IFX_TAPI_PHONE_VOLUME_SET
I/O control identifier for this operation.
unsigned long
param
The parameter points to an
IFX_TAPI_LINE_VOLUME_t
structure.
Return Values
Data Type
Description
int
IFX_ERROR – Failed to set volume.
IFX_SUCCESS – Successful.
3.14 IFX_TAPI_FXO_HOOK_SET
Description
Issues on-/off-hook in the fxo interface.
#define IFX_TAPI_FXO_HOOK_SET _IOW(IFX_TAPI_IOC_MAGIC, 0xDB, int)
Prototype
int ioctl (
int chan_fd,
int IFX_TAPI_FXO_HOOK_SET,
unsigned long param );
Parameters
Data Type
Name
Description
int
chan_fd
Channel descriptor.
int
IFX_TAPI_FXO_HOOK_SET
I/O control identifier for this operation.
unsigned long
param
Hook requested.
Return Values
Data Type
Description
int
IFX_ERROR – Failed to perform hook switch.
IFX_SUCEESS – Successful.