4 pcm management and control apis, 1 m1x66_pcmifconfig, 2 m1x66_pcmconfig – Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual

Page 16: Pcm management and control apis, M1x66_pcmifconfig, M1x66_pcmconfig

Advertising
background image

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 called to program the PCM interface configuration. It is anticipated that this PCM interface
configuration should never change, thus, only need to program once during initialization for each channel.

Prototype

M1x66_RET M1x66_PcmIfConfig (

M1x66_HANDLE channel,
M1x66_PCM_IF_CFG *pIfConfig );


Parameters

Data Type

Name

Description

M1x66_HANDLE

channel

Channel handle from FXO open channel.

M1x66_PCM_IF_CFG *pIfConfig

Pointer to the PCM interface config data structure.


Return Values

Data Type

Description

M1x66_RET

M1x66_SUCCESS – Successfully configured the PCM interface.
M1x66_FAILED – Failure.

2.4.2 M1x66_PcmConfig

Description

This API is called to program the PCM configuration. The PCM configuration contains the actual PCM
timeslots, thus, may change from session to session depend on the peer termination. The PCM transmit
and receive timeslots are used to establish connection to another device on the PCM bus.

Note: this PCM config API only sets up the PCM connection for both direction (tx and rx) but it does not
enable it until the M1x66_PcmActivation is called.

Prototype

M1x66_RET M1x66_PcmConfig (

M1x66_HANDLE channel,
M1x66_PCM_CFG *pConfig );

Parameters

Data Type

Name

Description

M1x66_HANDLE

channel

Channel handle from FXO open channel.

M1x66_PCM_CFG

*pConfig

Pointer to PCM config data structure.


Return Values

Data Type

Description

M1x66_RET

M1x66_SUCCESS – Successfully program the PCM config.
M1x66_FAILED – Failure.


Advertising