PDM_Init_TypeDef Struct Reference

PDM initialization structure.

#include <em_pdm.h>

Data Fields

bool start
Start PDM filter after initialization.
uint32_t dsr
PDM down sampling rate.
uint32_t gain
PDM gain.
PDM_Ch1ClkPolarity_Typedef ch1ClkPolarity
Ch 1 clock polarity.
PDM_Ch0ClkPolarity_Typedef ch0ClkPolarity
Ch 0 clock polarity.
bool enableCh0Ch1Stereo
Enable stereo mode for channel pair CH0 and CH1.
PDM_FifoValidWatermark_Typedef fifoValidWatermark
FIFO Data valid level water-mark.
PDM_DataFormat_TypeDef dataFormat
PDM filter data output format.
PDM_NumberOfChannels_TypeDef numChannels
Number of PDM channels.
PDM_FilterOrder_TypeDef filterOrder
PDM filter order.
uint32_t prescaler
PDM clock prescaler, resulting PDM clock is input clock / (prescaler + 1).

PDM initialization structure.

Field Documentation

start

bool PDM_Init_TypeDef::start

Start PDM filter after initialization.

dsr

uint32_t PDM_Init_TypeDef::dsr

PDM down sampling rate.

gain

uint32_t PDM_Init_TypeDef::gain

PDM gain.

ch1ClkPolarity

PDM_Ch1ClkPolarity_Typedef PDM_Init_TypeDef::ch1ClkPolarity

Ch 1 clock polarity.

ch0ClkPolarity

PDM_Ch0ClkPolarity_Typedef PDM_Init_TypeDef::ch0ClkPolarity

Ch 0 clock polarity.

enableCh0Ch1Stereo

bool PDM_Init_TypeDef::enableCh0Ch1Stereo

Enable stereo mode for channel pair CH0 and CH1.

fifoValidWatermark

PDM_FifoValidWatermark_Typedef PDM_Init_TypeDef::fifoValidWatermark

FIFO Data valid level water-mark.

dataFormat

PDM_DataFormat_TypeDef PDM_Init_TypeDef::dataFormat

PDM filter data output format.

numChannels

PDM_NumberOfChannels_TypeDef PDM_Init_TypeDef::numChannels

Number of PDM channels.

filterOrder

PDM_FilterOrder_TypeDef PDM_Init_TypeDef::filterOrder

PDM filter order.

prescaler

uint32_t PDM_Init_TypeDef::prescaler

PDM clock prescaler, resulting PDM clock is input clock / (prescaler + 1).