User guide

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_SUCCESSSuccessfully 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_SUCCESSSuccessfully program the PCM config.
M1x66_FAILED – Failure.