Maxim-integrated 73M1866B/73M1966B FXOAPI Manual de usuario Pagina 1

Busca en linea o descarga Manual de usuario para Hardware Maxim-integrated 73M1866B/73M1966B FXOAPI. Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 66
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
Simplifying System Integration
TM
73M1866B/73M1966B
FXOAPI User Guide
November 2, 2009
Rev. 2.1
UG_1x66B_046
Vista de pagina 0
1 2 3 4 5 6 ... 65 66

Indice de contenidos

Pagina 1 - FXOAPI User Guide

Simplifying System IntegrationTM 73M1866B/73M1966B FXOAPI User Guide November 2, 2009 Rev. 2.1 UG_1x66

Pagina 2

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 10 Rev. 2.1 IOCTL Name Description M1x66_GetFileDrescriptor Interval Event Table Management APIs

Pagina 3 - Table of Contents

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 11 2.2 FXO API Initialization and Termination 2.2.1 M1x66_FxoApiInit Description This

Pagina 4 - Figures

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 12 Rev. 2.1 2.3 Device/Channel Open, Close and Initialization APIs 2.3.1 M1x66_OpenDevice Descri

Pagina 5 - 1 Introduction

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 13 Return Values Data Type Description M1x66_HANDLE Non-ZERO value if the device is op

Pagina 6 - 1.1 Overview

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 14 Rev. 2.1 2.3.3 M1x66_OpenChannel Description This API performs the low level opening of the ch

Pagina 7 - 1.3 Acronyms

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 15 2.3.5 M1x66_InitChannel Description This API performs the channel initialization an

Pagina 8 - 2 API Descriptions

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 16 Rev. 2.1 2.4 PCM Management and Control APIs 2.4.1 M1x66_PcmIfConfig Description This API is

Pagina 9

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 17 2.4.3 M1x66_PcmActivation Description This API activates the PCM timeslot configure

Pagina 10

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 18 Rev. 2.1 2.5 Hook Switch and Pulse Dial Related APIs 2.5.1 M1x66_HookSwitch Description Perfo

Pagina 11 - 2.2.2 M1x66_FxoApiRelease

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 19 2.5.3 M1x66_PulseDialCancel Description

Pagina 12 - 2.3.1 M1x66_OpenDevice

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 2 Rev. 2.1 © 2009 Teridian Semiconductor Corporation. Al

Pagina 13 - 2.3.2 M1x66_CloseDevice

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 20 Rev. 2.1 2.6 This API terminates any active pulse dial session previously initiated by the Hoo

Pagina 14 - 2.3.4 M1x66_CloseChannel

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 21 M1x66_RET M1x66_SetPulseDialParam (M1x66_HANDLE chanHandle,

Pagina 15 - 2.3.5 M1x66_InitChannel

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 22 Rev. 2.1 2.7 GPIO Management APIs 2.7.1 M1x66_GetGpioConfig Description This is an API for re

Pagina 16 - 2.4.2 M1x66_PcmConfig

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 23 Return Values Data Type Description M1x66_RET M1x66_SUCCESS – Successful. M1x66_FAI

Pagina 17 - 2.4.4 M1x66_PcmDeActivation

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 24 Rev. 2.1 2.7.5 M1x66_GpioEnable Description This is an API for enable the GPIO. After a GPIO

Pagina 18 - 2.5.2 M1x66_PulseDial

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 25 2.8 Loopback Control APIs 2.8.1 M1x66_LoopbackGet Description This API reads the c

Pagina 19 - 2.5.3 M1x66_PulseDialCancel

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 26 Rev. 2.1 2.8.3 M1x66_LoopbackClear Description This API disables the loopback. Prototype M1x6

Pagina 20 - 2.6.1 M1x66_HookSwitch

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 27 2.9 Country Default Parameter and Override APIs 2.9.1 M1x66_GetCountryParam Descri

Pagina 21

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 28 Rev. 2.1 2.9.3 M1x66_ThresholdOverride Description Various FXO channel parameters are convenie

Pagina 22 - 2.7 GPIO Management APIs

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 29 2.10 Billing Tone Filter Control APIs 2.10.1 M1x66_BillingToneFilterEnable Descript

Pagina 23 - 2.7.4 M1x66_GetGpioData

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 3 Table of Contents 1 Introduction ...

Pagina 24 - 2.7.6 M1x66_GpioDisable

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 30 Rev. 2.1 2.11 1x66 H/W Register Access and Debugging aid APIs 2.11.1 M1x66_HWRegisterRead Desc

Pagina 25 - 2.8 Loopback Control APIs

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 31 M1x66_FAILED – Failure. 2.11.3 M1x66_HWRegisterWrite Description Perform H/W regist

Pagina 26 - 2.8.3 M1x66_LoopbackClear

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 32 Rev. 2.1 2.11.5 M1x66_GetFileDrescriptor Description To provide full flexibility to the drive

Pagina 27 - 2.9.2 M1x66_SetCountryParam

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 33 2.12 Interval Event Table Management APIs 2.12.1 M1x66_GetCurrentIET Description Re

Pagina 28

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 34 Rev. 2.1 2.12.3 M1x66_ClearCurrentIET Description Delete the line current IET table entry. Pr

Pagina 29

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 35 2.12.5 M1x66_UpdateVoltageIET Description Perform the line voltage IET table update

Pagina 30 - 2.11.1 M1x66_HWRegisterRead

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 36 Rev. 2.1 2.13 Current/Voltage Measurement APIs 2.13.1 M1x66_StartMeasureCurrent Description St

Pagina 31 - 2.11.4 M1x66_SetDebugTrace

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 37 2.13.3 M1x66_StopMeasureCurrent Description Stop the line current measurement. Pro

Pagina 32 - 2.11.6 M1x66_GetHWRevision

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 38 Rev. 2.1 2.14 Miscellaneous Channel Setting APIs 2.14.1 M1x66_SetRingCadence Description Set

Pagina 33 - 2.12.1 M1x66_GetCurrentIET

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 39 2.14.2 M1x66_SetPhoneVolume Description Set the speaker phone and microphone volume

Pagina 34 - 2.12.4 M1x66_GetVoltageIET

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 4 Rev. 2.1 2.10.5 M1x66_UpdateVoltageIET ...

Pagina 35

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 40 Rev. 2.1 2.14.4 M1x66_SelectSampleRate Description Select PCM sample rate. The 73M1x66B devic

Pagina 36

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 41 3 Structure Reference This section contains the detail description of the data stru

Pagina 37

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 42 Rev. 2.1 3.1 M1x66_HANDLE_t Description The device or channel handle is a pointer to a device

Pagina 38 - 2.14.1 M1x66_SetRingCadence

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 43 3.2 M1x66_CHAN_INIT_t Description Channel initialization structure. This structure

Pagina 39 - 2.14.2 M1x66_SetPhoneVolume

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 44 Rev. 2.1 3.3 M1x66_PCM_IF_CFG_t Description PCM interface config structure. This structure co

Pagina 40

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 45 3.4 M1x66_PCM_CFG_t Description PCM config structure. This structure contains the

Pagina 41 - 3 Structure Reference

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 46 Rev. 2.1 3.5 M1966_CNTRY_STRUCT_t Description This structure defines the country default param

Pagina 42 - 3.1 M1x66_HANDLE_t

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 47 4 Enumerator Reference This section contains the detail description of the enumerat

Pagina 43 - 3.2 M1x66_CHAN_INIT_t

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 48 Rev. 2.1 4.1 M1x66_RET Description API function return code. All APIs, expect the open device

Pagina 44 - 3.3 M1x66_PCM_IF_CFG_t

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 49 4.2 M1x66_EVENT_ID Description List of FXO event identification supported by the AP

Pagina 45 - 3.4 M1x66_PCM_CFG_t

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 5 1 Introduction This document describes the application programming interface (API) o

Pagina 46 - 3.6 M1966_THRESH_OVERRIDE_t

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 50 Rev. 2.1 M1x66_EVENT_LINE_STATE 0x00000100 Line state event – current/voltage. M1x66_EVENT_QUAL

Pagina 47 - 4 Enumerator Reference

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 51 4.3 M1x66_COUNTRY_CODE Description List of country codes supported by the API subsy

Pagina 48 - 4.1 M1x66_RET

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 52 Rev. 2.1 M1x66_CNTRY_CODE_NG = 47, /* "Nigeria" */ M1x66_C

Pagina 49 - 4.2 M1x66_EVENT_ID

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 53 4.4 M1x66_DCL_FREQUENCY Description Valid DCL Frequency used in M1x66_InitChannel A

Pagina 50

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 54 Rev. 2.1 4.5 M1x66_HOOK_SWITCH Description Hook switch command for on-hook and off-hook. Prot

Pagina 51 - 4.3 M1x66_COUNTRY_CODE

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 55 4.6 M1x66_REG_TYPE Description List of 1x66 device register type. Note: Register 0

Pagina 52

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 56 Rev. 2.1 Parameters Name Value Description M1x66_REG_0x00 Ox00 Register 0x00 M1x66_REG_0x01

Pagina 53 - 4.4 M1x66_DCL_FREQUENCY

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 57 4.7 M1x66_REG_ACCESS_TYPE Description Defines 73M1x66B register access types. Prot

Pagina 54 - 4.5 M1x66_HOOK_SWITCH

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 58 Rev. 2.1 4.9 M1966_GPIO_CONFIG_COMMAND Description This is the GPIO configuration command. T

Pagina 55 - 4.6 M1x66_REG_TYPE

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 59 4.11 M1966_GPIO_DATA_COMMAND Description GPIO data access command. If the M1966_GPI

Pagina 56

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 6 Rev. 2.1 1.1 Overview The FXOAPI is a user-friendly programming conduit used to access and mana

Pagina 57 - 4.8 M1966_GPIO_NUMBER

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 60 Rev. 2.1 4.13 M1966_GPIO_SIGNAL_DIRECTION Description GPIO pin signal direction. This control b

Pagina 58 - 4.10 M1966_GPIO_CONTROL_TYPE

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 61 4.15 M1x66_DEBUG_TRACE_MASK Description Defines all debug trace masks. Prototype /*

Pagina 59 - 4.12 M1966_GPIO_DATA_TYPE

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 62 Rev. 2.1 5 Sample Application This section illustrates how an FXO application can be implemen

Pagina 60

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 63 /* Initialize the channel for operation in US */ if (M1x66_InitChannel (channel

Pagina 61 - 4.15 M1x66_DEBUG_TRACE_MASK

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 64 Rev. 2.1 switch (event_id) { case M1x66_EVENT_RING_START: printf("\nRING(%d)"

Pagina 62 - 5 Sample Application

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 65 case M1x66_EVENT_DIAL_COMPLETE: printf("\n\r DIAL_COMP

Pagina 63

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 66 Rev. 2.1 Revision History Revision Date Description 1.0 6/12/2009 First publication. 2.0 1

Pagina 64

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 7 1.2 Conventions Used in this Guide This document uses the following conventions: •

Pagina 65 - 7 Contact Information

73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046 8 Rev. 2.1 2 API Descriptions This section contains the detail description of each API. Table 1

Pagina 66 - Revision History

UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide Rev. 2.1 9 IOCTL Name Description M1x66_FAILED – Failure. M1x66_PulseDial M1x66_PulseDialCance

Comentarios a estos manuales

Sin comentarios