beautypg.com

3 m1x66_pcm_if_cfg_t, M1x66_pcm_if_cfg_t, M1x66_pcm_if_cfg – Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual

Page 44

background image

73M1866B/73M1966B FXOAPI User Guide

UG_1x66B_046

44

Rev. 2.1

3.3 M1x66_PCM_IF_CFG_t

Description

PCM interface config structure. This structure contains the PCM interface configuration parameter.
These parameters are usually static and do not change from session to session. The
M1x66_PcmIfConfig

API passes the pointer to this structure to configure the PCM interface.


Prototype

/*
**************************************************************************
** PCM Interface Config Structure
*************************************************************************/
typedef struct {
int pcmOperMode;
int pcmFrequency;
int pcmRxEdgePolarity;
int pcmTxEdgePolarity;
int pcmRxClockSlot;
int pcmTxClockSlot;
}
m1966_PcmIfConfig;
typedef m1966_PcmIfConfig M1x66_PCM_IF_CFG_t;

Parameters

Data Type

Name

Description

int

pcmOperMode

Select operation mode: master or slave mode.
1 – Slave mode.
2 – Master mode.

M1x66_DCL_FREQUENCY pcmFrequency

DCL Frequency to be used in master or slave
mode.

int

pcmRxEdgePolarity

Edge polarity to be considered for the PCM
receive direction.
0 – Falling edge.
1 – Rising edge.

int

pcmTxEdgePolarity

Edge polarity to be considered for the PCM
transmit direction.
0 – Falling edge.
1 – Rising edge.

int

pcmRxClockSlot

Receive clock slot bit offset.

int

pcmTxClockSlot

Transmit clock slot bit offset.