beautypg.com
UG_1x66B_021
73M1866B/73M1966B TAPI High-Level Driver User Guide
Rev. 2.2
3
Table of Contents
1
Introduction ................................................................................................................................... 5
1.1
Purpose and Scope ................................................................................................................. 5
1.2
Conventions Used in this Guide ............................................................................................... 6
1.3
Acronyms................................................................................................................................. 6
2
Driver Service Interface ................................................................................................................. 7
2.1
Linux Operating System ........................................................................................................... 7
2.2
Other Operating Systems ......................................................................................................... 7
IFX TAPI IOCTL Commands Description ...................................................................................... 8
3.1
IFX_TAPI_CH_INIT ................................................................................................................. 9
3.2
IFX_TAPI_PCM_IF_CFG_SET .............................................................................................. 10
3.3
IFX_TAPI_PCM_CFG_SET ................................................................................................... 11
3.4
IFX_TAPI_PCM_CFG_GET ................................................................................................... 11
3.5
IFX_TAPI_PCM_ACTIVATION_SET ...................................................................................... 12
3.6
IFX_TAPI_PCM_ACTIVATION_GET ..................................................................................... 13
3.7
IFX_TAPI_EVENT_ENABLE .................................................................................................. 14
3.8
IFX_TAPI_EVENT_DISABLE ................................................................................................. 14
3.9
IFX_TAPI_EVENT_GET ........................................................................................................ 15
3.10
IFX_TAPI_VERSION_GET .................................................................................................... 15
3.11
IFX_TAPI_DEBUG_REPORT_SET........................................................................................ 16
3.12
IFX_TAPI_LINE_TYPE_SET.................................................................................................. 17
3.13
IFX_TAPI_PHONE_VOLUME_SET ....................................................................................... 18
3.14
IFX_TAPI_FXO_HOOK_SET ................................................................................................. 18
3.15
IFX_TAPI_FXO_FLASH_SET ................................................................................................ 19
3.16
IFX_TAPI_FXO_FLASH_CFG_SET ....................................................................................... 19
3.17
IFX_TAPI_FXO_BAT_ GET ................................................................................................... 20
3.18
IFX_TAPI_FXO_APOH_ GET ................................................................................................ 21
3.19
IFX_TAPI_FXO_RING_ GET ................................................................................................. 22
3.20
IFX_TAPI_FXO_POLARITY_ GET ......................................................................................... 23
3.21
IFX_TAPI_LASTERR ............................................................................................................. 24
3.22
IFX_TAPI_FXO_LINE_MODE_SET ....................................................................................... 25
4
Type and Structure Definitions ................................................................................................... 26
4.1
IFX_TAPI_CH_INIT_t............................................................................................................. 26
4.2
IFX_TAPI_PCM_IF_CFG_t .................................................................................................... 27
4.3
IFX_TAPI_PCM_ CFG_t ........................................................................................................ 28
4.4
IFX_TAPI_EVENT_t .............................................................................................................. 28
4.5
IFX_TAPI_LINE_TYPE_CFG_t .............................................................................................. 29
4.6
IFX_TAPI_FXO_LINE_MODES_t........................................................................................... 29
4.7
IFX_TAPI_LINE_VOLUME_t .................................................................................................. 30
4.8
IFX_TAPI_FXO_HOOK_t ....................................................................................................... 30
4.9
IFX_TAPI_FXO_FLASH_CFG_t............................................................................................. 30
4.10
IFX_TAPI_EVENT_ID_t ......................................................................................................... 31
4.11
M1966_DEBUG_TRACE_MASK............................................................................................ 31
4.12
M1966_CNTRY_CODE_XX ................................................................................................... 32
5
Related Documentation ............................................................................................................... 34
6
Contact Information ..................................................................................................................... 34
Revision History .................................................................................................................................. 35