Data Fields
PDMCC26XX_I2S_AudioClockConfig Struct Reference

PDMCC26XX_I2S Audio Clock configuration. More...

#include <PDMCC26XX_util.h>

Data Fields

uint16_t wclkDiv
uint16_t sampleOnPositiveEdge:1
uint16_t wclkPhase:2
uint16_t wclkInverted:1
uint16_t wclkSource:2
uint16_t bclkDiv:10
uint16_t reserved:5
uint16_t bclkSource:1
uint16_t mclkDiv:10

Detailed Description

PDMCC26XX_I2S Audio Clock configuration.

These fields are used by the driver to set up the I2S module

A sample structure is shown below (single PDM microphone):

const PDMCC26XX_I2S_AudioClockConfig PDMCC26XX_I2Sobjects[] = {
16, // Word clock division
47, // Bit clock division
0, // Reserved
6, // Master clock division

Field Documentation

§ wclkDiv

uint16_t PDMCC26XX_I2S_AudioClockConfig::wclkDiv

I2S Word Clock divider override

§ sampleOnPositiveEdge

uint16_t PDMCC26XX_I2S_AudioClockConfig::sampleOnPositiveEdge

I2S Sample Edge. 0 - data and WCLK are sampled on the negative edge and clocked out on the positive edge. 1 - data and WCLK are sampled on the positive edge and clocked out on the negative edge

§ wclkPhase

uint16_t PDMCC26XX_I2S_AudioClockConfig::wclkPhase

I2S Word Clock Phase(PDMCC26XX_I2S_WordClockPhase_Dual, PDMCC26XX_I2S_WordClockPhase_Single or PDMCC26XX_I2S_WordClockPhase_UserDefined)

§ wclkInverted

uint16_t PDMCC26XX_I2S_AudioClockConfig::wclkInverted

I2S Invert Word Clock (PDMCC26XX_I2S_ClockSource_Inverted or PDMCC26XX_I2S_ClockSource_Normal)

§ wclkSource

uint16_t PDMCC26XX_I2S_AudioClockConfig::wclkSource

I2S Word Clock source (PDMCC26XX_I2S_WordClockSource_Ext or PDMCC26XX_I2S_WordClockSource_Int)

§ bclkDiv

uint16_t PDMCC26XX_I2S_AudioClockConfig::bclkDiv

I2S Bit Clock divider override

§ reserved

uint16_t PDMCC26XX_I2S_AudioClockConfig::reserved

Reserved bit field

§ bclkSource

uint16_t PDMCC26XX_I2S_AudioClockConfig::bclkSource

I2S Bit Clock source (PDMCC26XX_I2S_BitClockSource_Ext or PDMCC26XX_I2S_BitClockSource_Int)

§ mclkDiv

uint16_t PDMCC26XX_I2S_AudioClockConfig::mclkDiv

I2S Master Clock divider override

The documentation for this struct was generated from the following file:
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale