4 m1x66_selectsamplerate, M1x66_selectsamplerate – Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual

Page 40

Advertising
background image

73M1866B/73M1966B FXOAPI User Guide

UG_1x66B_046

40

Rev. 2.1

2.14.4 M1x66_SelectSampleRate

Description

Select PCM sample rate. The 73M1x66B device can operate in one of two sample rates – 8 kHz or
16 kHz sample rate. The device defaults to 8 kHz operation upon startup and can be changed to run at
16 kHz using this API.

Notes: Changing the PCM sample rate will affect the following:

1. Data presented in PCM timeslots – reallocation of transmit and receive timeslots may be necessary

or required to properly communicate with peer interface.

2. Barrier interface operation – a momentary loss of synchronization on the barrier interface is expected.

However, the driver will automatically attempt to recover barrier synchronization. The SYNC lost
event is sent and should be followed by SYNC restored event when the barrier is synced up again.


Prototype

M1x66_RET M1x66_SelectSampleRate (

M1x66_HANDLE chanHandle,
M1966_SAMPLE_RATE_SELECTION rate);


Parameters

Data Type

Name

Description

M1x66_HANDLE

chanHandle

Channel handle obtains from open channel.

M1x66_SAMPLE_RATE_SELECTION rate

Desired sample rate.


Return Values

Data Type

Description

M1x66_RET

M1x66_SUCCESS – Successful.
M1x66_FAILED – Failure.


Advertising