Maxim-integrated 73M1866B/73M1966B Reference Driver Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Hardware Maxim-integrated 73M1866B/73M1966B Reference Driver. Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual [fr] [de] [en] Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 98
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 0
Simplifying System Integration
TM
73M1866B/73M1966B
Reference Driver User Guide
June 22, 2009
Rev. 2.7
UG_1x66B_015
Vista de página 0
1 2 3 4 5 6 ... 97 98

Resumo do Conteúdo

Página 1 - Reference Driver User Guide

Simplifying System IntegrationTM 73M1866B/73M1966B Reference Driver User Guide June 22, 2009 Rev. 2.7

Página 2

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 10 Rev. 2.7 2.2 Functional Overview Once installed, the driver is a self-contained modu

Página 3 - Table of Contents

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 11 The application is responsible for building up the IET using the IET table

Página 4

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 12 Rev. 2.7 2.2.5 Loopback and Testing Modes The 1966B devices support six variations o

Página 5

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 13 3 Driver Service Interface The Driver Service provides the link between t

Página 6 - Figures

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 14 Rev. 2.7 4 Country Specific Settings The 73M1x66B Reference Driver supports global c

Página 7 - 1 Introduction

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 15 5 FXO Events The driver provides event service to the high level applicat

Página 8 - 1.3 Acronyms

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 16 Rev. 2.7 5.2 Event Identification 5.2.1 M1966_BATTERY_DROPPED This event occurs whe

Página 9 - 2 Overview

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 17 5.2.4 M1966_ONH_NOPOH_DETECT This event is generated when a parallel phon

Página 10 - 2.2 Functional Overview

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 18 Rev. 2.7 5.2.7 M1966_RING_DETECT_START This event is generated at the beginning of t

Página 11 - 2.2.4 GPIO Support

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 19 5.2.10 M1966_OV_DETECT This event is generated on detection of an over

Página 12 - 2.2.7 Billing Tone Filter

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 2 Rev. 2.7 © 2010 Teridian Semiconductor Corpora

Página 13 - and ioctl()

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 20 Rev. 2.7 5.2.13 M1966_LINE_STATE This event is generated when the line state analys

Página 14 - 4 Country Specific Settings

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 21 5.2.16 M1966_DEVICE_RECOVERED This event is generated after the device i

Página 15 - 5 FXO Events

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 22 Rev. 2.7 6 IOCTL Commands Description Upon successful opening of a device or channel

Página 16 - 5.2 Event Identification

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 23 6.1 Initialization and Configuration IOCTLs The following IOCTLs are defi

Página 17

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 24 Rev. 2.7 6.1.1 M1966_CH_INIT Description Performs 73M1x66 channel initialization. T

Página 18 - 5.2.8 M1966_RING_DETECT_END

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 25 6.1.2 M1966_PCM_IF_CSET_OPMODE_SET Description Sets the 73M1x66 to operat

Página 19 - 5.2.12 M1966_OL_DETECT

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 26 Rev. 2.7 6.1.3 M1966_PCM_IF_CSET_FREQUENCY_SET Description If the incoming PCM frequ

Página 20 - 5.2.15 M1966_DIAL_ABORTED

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 27 6.1.4 M1966_PCM_IF_CSET_RPOL_SET Description Sets receive edge polarity.

Página 21 - 5.2.18 M1966_ONH_DETECT

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 28 Rev. 2.7 6.1.6 M1966_PCM_IF_CSET_RCS_SET Description Sets receive clock slot. #defi

Página 22

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 29 6.1.8 M1966_PCM_CSET_TSLOT_RX_SET Description Sets receive PCM time slot.

Página 23

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 3 Table of Contents 1 Introduction ...

Página 24 - 6.1.1 M1966_CH_INIT

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 30 Rev. 2.7 6.1.10 M1966_PCM_CSET_COMPRESSION_SET Description Sets PCM data compression

Página 25

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 31 6.1.12 M1966_PCM_ACTIVATION_CLEAR Description This service de-activates t

Página 26

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 32 Rev. 2.7 6.1.14 M1966_CNTRY_NMBR_GET Description Converts a null terminated ASCII st

Página 27

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 33 6.1.15 M1966_GET_COUNTRY_CONFIG This IOCTL allows an application progra

Página 28

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 34 Rev. 2.7 6.1.16 M1966_SET_COUNTRY_CONFIG This IOCTL allows application program to w

Página 29

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 35 6.1.17 M1966_PHONE_VOLUME_SET Description The gain of both transmit and r

Página 30

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 36 Rev. 2.7 6.1.18 M1966_PERF_RX_OFFSET_CALIB This IOCTL allows an application program

Página 31

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 37 6.1.19 M1966_CLEAR_RX_OFFSET_REG Description Clears the receive offset me

Página 32 - 6.1.14 M1966_CNTRY_NMBR_GET

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 38 Rev. 2.7 6.1.20 M1966_SAMPLE_RATE Description Select PCM sample rate. The 1x66 devi

Página 33

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 39 6.2 Events and Status Service The driver can be queried for a variety of

Página 34

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 4 Rev. 2.7 6.1.12 M1966_PCM_ACTIVATION_CLEAR ...

Página 35

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 40 Rev. 2.7 6.2.2 M1966_POL_GET Description Gets the current polarity reversal status o

Página 36

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 41 6.2.3 M1966_BAT_GET Description Gets the current battery status of the FX

Página 37

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 42 Rev. 2.7 6.2.4 M1966_POH_GET Description Gets the current “parallel phone off-hook”

Página 38 - 6.1.20 M1966_SAMPLE_RATE

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 43 6.2.5 M1966_EVENT_GET Description Returns an event from the FIFO queue.

Página 39 - 6.2.1 M1966_RNG_GET

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 44 Rev. 2.7 6.2.6 M1966_ERROR_CODE_GET Description This IOCTL returns the error code of

Página 40 - 6.2.2 M1966_POL_GET

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 45 6.3 FXO Hook Switch Control Services The configuration and control of the

Página 41 - 6.2.3 M1966_BAT_GET

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 46 Rev. 2.7 6.3.2 M1966_ATH1 Description Issues the off-hook signal to the FXO interfac

Página 42 - 6.2.4 M1966_POH_GET

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 47 6.3.3 M1966_ATH0 Description Issues on-hook in the FXO interface. #defin

Página 43 - 6.2.5 M1966_EVENT_GET

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 48 Rev. 2.7 6.3.4 M1966_ATDP Description Performs pulse dialing on the FXO channel. As

Página 44 - 6.2.6 M1966_ERROR_CODE_GET

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 49 6.3.5 M1966_ATDP_CANCEL Description Aborts or cancels an active pulse ses

Página 45

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 5 7.6 M1966_PULSE_DIAL_t ...

Página 46 - 6.3.2 M1966_ATH1

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 50 Rev. 2.7 6.3.6 M1966_ATDP_PARAM Description This IOCTL is used to modify or read the

Página 47 - 6.3.3 M1966_ATH0

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 51 6.3.7 M1966_FLSH_CFG Description This is the configuration of flash-hook

Página 48 - 6.3.4 M1966_ATDP

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 52 Rev. 2.7 6.3.9 M1966_SEND_WETTING_PULSE Description Performs hook flashing on the FX

Página 49 - 6.3.5 M1966_ATDP_CANCEL

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 53 6.4 Caller-ID Services The following service control how the FXO manages

Página 50 - M1966_PULSE_DIAL_PARAM_t

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 54 Rev. 2.7 6.4.2 M1966_DISABLE_CALLER_ID Description Disables the automatic Caller ID

Página 51 - 6.3.8 M1966_FLSH_SET

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 55 6.4.3 M1966_ENTER_CID_MODE Description Manually enters Caller ID mode reg

Página 52

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 56 Rev. 2.7 6.4.4 M1966_EXIT_CID_MODE Description Exits Caller ID mode. #define M1966

Página 53 - 6.4 Caller-ID Services

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 57 6.5 Ring Detection Services The following services control how the FXO ma

Página 54

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 58 Rev. 2.7 6.5.2 M1966_SET_RING_MIN_FREQ Description Upon detection of a ring burst th

Página 55 - 6.4.3 M1966_ENTER_CID_MODE

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 59 6.5.3 M1966_SET_RING_MAX_FREQ Description Upon detection of a ring burst

Página 56 - 6.4.4 M1966_EXIT_CID_MODE

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 6 Rev. 2.7 Figures Figure 1: Driver Architecture ...

Página 57 - 6.5 Ring Detection Services

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 60 Rev. 2.7 6.6 Line State Analysis Services The following services control the FXO lin

Página 58

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 61 6.6.2 M1966_MEASURE_STOP Description Stops an on-going measurement (curre

Página 59

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 62 Rev. 2.7 6.6.3 M1966_MEASURE_UPDATE Description Reads an IET entry or updates an IE

Página 60 - 6.6.1 M1966_MEASURE_START

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 63 The following example code illustrates a reading of a line voltage IET tab

Página 61 - 6.6.2 M1966_MEASURE_STOP

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 64 Rev. 2.7 6.7 GPIO Services 6.7.1 M1966_GPIO_CONFIG Description The ioctl is used t

Página 62 - 6.6.3 M1966_MEASURE_UPDATE

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 65 6.7.3 M1966_GPIO_DATA Description This IOCTL is used to read or write da

Página 63 - M1966_MEASURE_UPDATE_t read;

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 66 Rev. 2.7 6.8 Loopback Services 6.8.1 M1966_LOOPBACK Description This IOCTL is used

Página 64 - 6.7 GPIO Services

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 67 6.9 Miscellaneous 6.9.1 M1966_THRESHOLD_OVERRIDE Description Various FXO

Página 65 - 6.7.3 M1966_GPIO_DATA

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 68 Rev. 2.7 6.9.2 M1966_BTONE_FILTER Description Large amplitude out-of-band tones can

Página 66 - 6.8 Loopback Services

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 69 6.9.3 M1966_CPROG_MONITOR Description The Call Progress Monitor monitors

Página 67 - 6.9 Miscellaneous

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 7 1 Introduction This document describes the capabilities of the 73M1866B/73

Página 68 - 6.9.2 M1966_BTONE_FILTER

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 70 Rev. 2.7 6.9.4 M1966_DEBUG_LEVEL_SET Description Sets the driver trace mask to enabl

Página 69 - 6.9.3 M1966_CPROG_MONITOR

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 71 6.9.5 M1966_TEST_CODE Description The M1966_TEST_CODE ioctl command can b

Página 70 - 6.9.4 M1966_DEBUG_LEVEL_SET

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 72 Rev. 2.7 7 Type and Structure Definition Reference This section contains the type de

Página 71 - 6.9.5 M1966_TEST_CODE

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 73 #define M1966_CNTRY_CODE_MX 43 /* "Mexico"

Página 72 - 7.1 M1966_COUNTRY_CODE

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 74 Rev. 2.7 7.2 M1966_CNTRY_STRUCT_t Description This structure defines the country def

Página 73

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 75 7.3 M1966_DEBUG_TRACE_MASK Description Trace macros used by the M1966_DEB

Página 74 - 7.2 M1966_CNTRY_STRUCT_t

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 76 Rev. 2.7 7.5 struct txrx_gain Description This structure is used by the M1966_PHONE_

Página 75 - 7.4 M1966_LAST_ERROR_CODE

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 77 7.7 M1966_PULSE_DIAL_PARAM_t Description This structure is used by the M1

Página 76 - 7.6 M1966_PULSE_DIAL_t

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 78 Rev. 2.7 7.9 M1966_SAMPLE_RATE_SELECTION Description This is the enumerated sample r

Página 77 - 7.8 M1966_THRESH_OVERRIDE_t

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 79 7.10.2 M1966_BTONE_FREQUENCY Description This is the list of tone frequen

Página 78

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 8 Rev. 2.7 1.2 Conventions Used in this Guide This document uses the following convent

Página 79 - 7.10.3 M1966_BTONE_FILTER_t

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 80 Rev. 2.7 7.11 Call Progress Monitor Data Type and Structure 7.11.1 M1966_CPROG_MON_

Página 80 - 7.11.2 M1966_CPROG_MON_GAIN

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 81 7.11.3 M1966_CPROG_MONITOR_t Description This structure is used by the M1

Página 81

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 82 Rev. 2.7 7.12 GPIO Related Data Type and Structures 7.12.1 M1966_GPIO_NUMBER Descri

Página 82 - 7.12.1 M1966_GPIO_NUMBER

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 83 7.12.3 M1966_GPIO_CONTROL_TYPE Description GPIO control type definitios.

Página 83

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 84 Rev. 2.7 7.12.5 M1966_GPIO_DATA_TYPE Description GPIO data types – this is the GPIO

Página 84 - 7.12.5 M1966_GPIO_DATA_TYPE

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 85 7.12.7 M1966_GPIO_INTR_POLARITY Description GPIO Interrupt signal transit

Página 85 - 7.12.8 M1966_GPIO_CONFIG_t

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 86 Rev. 2.7 7.12.9 M1966_GPIO_DATA_t Description This structure is used by the M1966_GP

Página 86 - 7.12.9 M1966_GPIO_DATA_t

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 87 7.13 Loopback Related Data Type and Structure 7.13.1 M1966_LOOPBACK_COMM

Página 87 - 7.13.2 M1966_LOOPBACK_MODE

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 88 Rev. 2.7 7.13.3 M1966_LOOPBACK_t Description This is the structure used for managing

Página 88 - 7.14.1 M1966_MEASURE_ENTITY

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 89 7.14.2 M1966_MEASURE_ACTION Description This is the enumerated list of po

Página 89 - 7.14.2 M1966_MEASURE_ACTION

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 9 2 Overview 2.1 Driver Architecture The driver provides a framework by whi

Página 90

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 90 Rev. 2.7 7.14.4 M1966_MEASURE_UPDATE_t Description This structure is used by the M19

Página 91 - 7.14.5 M1966_IET_t

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 91 7.14.5 M1966_IET_t Description This Interval and Event Table structure (I

Página 92

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 92 Rev. 2.7 8 Porting to a Specific H/W Platform As stated earlier, it is anticipated t

Página 93

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 93 8.3 Platform Dependent Macros The following macros are used in the drive

Página 94

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 94 Rev. 2.7 SPI_WAIT_FOR_READY (status); \ SP

Página 95 - 10 Contact Information

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 95 9 Related Documentation The following 73M1x66B documents are available fr

Página 96 - Appendix A – Country Codes

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 96 Rev. 2.7 Appendix A – Country Codes Table 8 provides all the defined countries, their

Página 97 - Revision History

UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide Rev. 2.7 97 Revision History Revision Date Description 2.0 8/22/2008 First publica

Página 98

73M1866B/73M1966B Reference Driver User Guide UG_1x66B_015 98 Rev. 2.7 2.5.2 8/13/2009 Changed all instances of M1966_FXO_EVENT to M1966_FXO_EVEN

Comentários a estes Manuais

Sem comentários