PDM_Init_TypeDef Struct Reference
PDM initialization structure.
      
       #include <em_pdm.h>
      
     
| Data Fields | |
| bool | start | 
| Start PDM filter after initialization. | |
| bool | outClkEn | 
| Enable PDM clock. | |
| uint32_t | dsr | 
| PDM down sampling rate. | |
| uint32_t | gain | 
| PDM gain. | |
| PDM_Ch3ClkPolarity_Typedef | ch3ClkPolarity | 
| Ch 3 clock polarity. | |
| PDM_Ch2ClkPolarity_Typedef | ch2ClkPolarity | 
| Ch 2 clock polarity. | |
| PDM_Ch1ClkPolarity_Typedef | ch1ClkPolarity | 
| Ch 1 clock polarity. | |
| PDM_Ch0ClkPolarity_Typedef | ch0ClkPolarity | 
| Ch 0 clock polarity. | |
| bool | enableCh2Ch3Stereo | 
| Enable stereo mode for channel pair CH2 and CH3. | |
| 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.
◆ outClkEn
| bool PDM_Init_TypeDef::outClkEn | 
Enable PDM clock.
◆ dsr
| uint32_t PDM_Init_TypeDef::dsr | 
PDM down sampling rate.
◆ gain
| uint32_t PDM_Init_TypeDef::gain | 
PDM gain.
◆ ch3ClkPolarity
| PDM_Ch3ClkPolarity_Typedef PDM_Init_TypeDef::ch3ClkPolarity | 
Ch 3 clock polarity.
◆ ch2ClkPolarity
| PDM_Ch2ClkPolarity_Typedef PDM_Init_TypeDef::ch2ClkPolarity | 
Ch 2 clock polarity.
◆ ch1ClkPolarity
| PDM_Ch1ClkPolarity_Typedef PDM_Init_TypeDef::ch1ClkPolarity | 
Ch 1 clock polarity.
◆ ch0ClkPolarity
| PDM_Ch0ClkPolarity_Typedef PDM_Init_TypeDef::ch0ClkPolarity | 
Ch 0 clock polarity.
◆ enableCh2Ch3Stereo
| bool PDM_Init_TypeDef::enableCh2Ch3Stereo | 
Enable stereo mode for channel pair CH2 and CH3.
◆ 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).