4 m1x66_pcm_cfg_t, M1x66_pcm_cfg_t, M1x66_pcm_cfg – Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual
Page 45

UG_1x66B_046
73M1866B/73M1966B FXOAPI User Guide
Rev. 2.1
45
3.4 M1x66_PCM_CFG_t
Description
PCM config structure. This structure contains the PCM timeslots and codec parameter. These
parameters are not static and may change from session to session. The M1x66_PcmConfig API passes
the pointer to this structure to configure the PCM timeslots and codec.
Prototype
/*
**************************************************************************
** PCM Config Structure
*************************************************************************/
typedef struct {
int pcmResolution;
int pcmTimeslotRX;
int pcmTimeslotTX;
}
m1966_PcmConfig;
typedef m1966_PcmConfig M1x66_PCM_CFG_t;
Parameters
Data Type
Name
Description
Int
pcmResolution
Defines the PCM interface coding.
0 – 8-bit A-law.
1 – 8-bit µ-law.
2 – 16-bit linear.
Int
pcmTimeslotRX
PCM timeslot for receive direction.
Int
pcmTimeslotTX
PCM timeslot for transmit direction.