25 #include "stm32h7xx_hal.h"
30 #ifdef HAL_SAI_MODULE_ENABLED
40 #define SAI_PDM_DELAY_MASK 0x77U
41 #define SAI_PDM_DELAY_OFFSET 8U
42 #define SAI_PDM_RIGHT_DELAY_OFFSET 4U
87 if (SaiBaseAddress ==
NULL)
99 offset = SAI_PDM_DELAY_OFFSET * (pdmMicDelay->
MicPair - 1U);
105 SaiBaseAddress->
PDMDLY &= ~(SAI_PDM_DELAY_MASK << offset);
108 SaiBaseAddress->
PDMDLY |= (((pdmMicDelay->
RightDelay << SAI_PDM_RIGHT_DELAY_OFFSET) | pdmMicDelay->
LeftDelay) << offset);