Maxim-integrated 73M1866B/73M1966B Reference Driver User Manual

Browse online or download User Manual for Hardware Maxim-integrated 73M1866B/73M1966B Reference Driver. Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual [fr] [de] [en]

  • Download
  • Add to my manuals
  • Print
  • Page
    / 98
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
Simplifying System Integration
TM
73M1866B/73M1966B
Reference Driver User Guide
June 22, 2009
Rev. 2.7
UG_1x66B_015
Page view 0
1 2 3 4 5 6 ... 97 98

Summary of Contents

Page 1 - Reference Driver User Guide

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 12 - 2.2.7 Billing Tone Filter

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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.

Page 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

Page 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.

Page 23

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 34

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

Page 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

Page 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

Page 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”

Page 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.

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 45

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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 ...

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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"

Page 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

Page 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

Page 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_

Page 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

Page 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

Page 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

Page 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

Page 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_

Page 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

Page 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

Page 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.

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 94

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

Page 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

Page 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

Page 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

Page 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

Comments to this Manuals

No comments