STM32F4xx_HAL_Driver  1.8.3
MultiChannel operation functions

Filter state functions. More...

+ Collaboration diagram for MultiChannel operation functions:

Functions

void HAL_DFSDM_ConfigMultiChannelDelay (DFSDM_MultiChannelConfigTypeDef *mchdlystruct)
 Configure multi channel delay block: Use DFSDM2 audio clock source as input clock for DFSDM1 and DFSDM2 filters to Synchronize DFSDMx filters. Set the path of the DFSDM2 clock output (dfsdm2_ckout) to the DFSDM1/2 CkInx and data inputs channels by configuring following MCHDLY muxes or demuxes: M1, M2, M3, M4, M5, M6, M7, M8, DM1, DM2, DM3, DM4, DM5, DM6, M9, M10, M11, M12, M13, M14, M15, M16, M17, M18, M19, M20 based on the contains of the DFSDM_MultiChannelConfigTypeDef structure. More...
 
void HAL_DFSDM_BitstreamClock_Start (void)
 Select the DFSDM2 as clock source for the bitstream clock. More...
 
void HAL_DFSDM_BitstreamClock_Stop (void)
 Stop the DFSDM2 as clock source for the bitstream clock. More...
 
void HAL_DFSDM_DisableDelayClock (uint32_t MCHDLY)
 Disable Delay Clock for DFSDM1/2. More...
 
void HAL_DFSDM_EnableDelayClock (uint32_t MCHDLY)
 Enable Delay Clock for DFSDM1/2. More...
 
void HAL_DFSDM_ClockIn_SourceSelection (uint32_t source)
 Select the source for CKin signals for DFSDM1/2. More...
 
void HAL_DFSDM_ClockOut_SourceSelection (uint32_t source)
 Select the source for CKOut signals for DFSDM1/2. More...
 
void HAL_DFSDM_DataIn0_SourceSelection (uint32_t source)
 Select the source for DataIn0 signals for DFSDM1/2. More...
 
void HAL_DFSDM_DataIn2_SourceSelection (uint32_t source)
 Select the source for DataIn2 signals for DFSDM1/2. More...
 
void HAL_DFSDM_DataIn4_SourceSelection (uint32_t source)
 Select the source for DataIn4 signals for DFSDM2. More...
 
void HAL_DFSDM_DataIn6_SourceSelection (uint32_t source)
 Select the source for DataIn6 signals for DFSDM2. More...
 
void HAL_DFSDM_BitStreamClkDistribution_Config (uint32_t source)
 Configure the distribution of the bitstream clock gated from TIM4_OC for DFSDM1 or TIM3_OC for DFSDM2. More...
 

Detailed Description

Filter state functions.

  ==============================================================================
                     ##### Filter MultiChannel operation functions #####
  ==============================================================================
    [..]  This section provides functions allowing to:
      (+) Control the DFSDM Multi channel delay block

Function Documentation

◆ HAL_DFSDM_BitStreamClkDistribution_Config()

void HAL_DFSDM_BitStreamClkDistribution_Config ( uint32_t  source)

Configure the distribution of the bitstream clock gated from TIM4_OC for DFSDM1 or TIM3_OC for DFSDM2.

Parameters
sourceDFSDM1_CLKIN0_TIM4OC2 DFSDM1_CLKIN2_TIM4OC2 DFSDM1_CLKIN1_TIM4OC1 DFSDM1_CLKIN3_TIM4OC1 DFSDM2_CLKIN0_TIM3OC4 DFSDM2_CLKIN4_TIM3OC4 DFSDM2_CLKIN1_TIM3OC3 DFSDM2_CLKIN5_TIM3OC3 DFSDM2_CLKIN2_TIM3OC2 DFSDM2_CLKIN6_TIM3OC2 DFSDM2_CLKIN3_TIM3OC1 DFSDM2_CLKIN7_TIM3OC1
Return values
None

Definition at line 3972 of file stm32f4xx_hal_dfsdm.c.

◆ HAL_DFSDM_BitstreamClock_Start()

void HAL_DFSDM_BitstreamClock_Start ( void  )

Select the DFSDM2 as clock source for the bitstream clock.

Note
The SYSCFG clock marco __HAL_RCC_SYSCFG_CLK_ENABLE() must be called before HAL_DFSDM_BitstreamClock_Start()

Definition at line 3717 of file stm32f4xx_hal_dfsdm.c.

◆ HAL_DFSDM_BitstreamClock_Stop()

void HAL_DFSDM_BitstreamClock_Stop ( void  )

Stop the DFSDM2 as clock source for the bitstream clock.

Note
The SYSCFG clock marco __HAL_RCC_SYSCFG_CLK_ENABLE() must be called before HAL_DFSDM_BitstreamClock_Stop()
Return values
None

Definition at line 3733 of file stm32f4xx_hal_dfsdm.c.

◆ HAL_DFSDM_ClockIn_SourceSelection()

void HAL_DFSDM_ClockIn_SourceSelection ( uint32_t  source)

Select the source for CKin signals for DFSDM1/2.

Parameters
sourceDFSDM2_CKIN_PAD. DFSDM2_CKIN_DM. DFSDM1_CKIN_PAD. DFSDM1_CKIN_DM.
Return values
None

Definition at line 3798 of file stm32f4xx_hal_dfsdm.c.

◆ HAL_DFSDM_ClockOut_SourceSelection()

void HAL_DFSDM_ClockOut_SourceSelection ( uint32_t  source)

Select the source for CKOut signals for DFSDM1/2.

Parameters
sourceDFSDM2_CKOUT_DFSDM2. DFSDM2_CKOUT_M27. DFSDM1_CKOUT_DFSDM1. DFSDM1_CKOUT_M27.
Return values
None

Definition at line 3831 of file stm32f4xx_hal_dfsdm.c.

◆ HAL_DFSDM_ConfigMultiChannelDelay()

void HAL_DFSDM_ConfigMultiChannelDelay ( DFSDM_MultiChannelConfigTypeDef mchdlystruct)

Configure multi channel delay block: Use DFSDM2 audio clock source as input clock for DFSDM1 and DFSDM2 filters to Synchronize DFSDMx filters. Set the path of the DFSDM2 clock output (dfsdm2_ckout) to the DFSDM1/2 CkInx and data inputs channels by configuring following MCHDLY muxes or demuxes: M1, M2, M3, M4, M5, M6, M7, M8, DM1, DM2, DM3, DM4, DM5, DM6, M9, M10, M11, M12, M13, M14, M15, M16, M17, M18, M19, M20 based on the contains of the DFSDM_MultiChannelConfigTypeDef structure.

Parameters
mchdlystructStructure of multi channel configuration
Return values
None
Note
The SYSCFG clock marco __HAL_RCC_SYSCFG_CLK_ENABLE() must be called before HAL_DFSDM_ConfigMultiChannelDelay()
The HAL_DFSDM_ConfigMultiChannelDelay() function clears the SYSCFG-MCHDLYCR register before setting the new configuration.

Definition at line 4030 of file stm32f4xx_hal_dfsdm.c.

◆ HAL_DFSDM_DataIn0_SourceSelection()

void HAL_DFSDM_DataIn0_SourceSelection ( uint32_t  source)

Select the source for DataIn0 signals for DFSDM1/2.

Parameters
sourceDATAIN0_DFSDM2_PAD. DATAIN0_DFSDM2_DATAIN1. DATAIN0_DFSDM1_PAD. DATAIN0_DFSDM1_DATAIN1.
Return values
None

Definition at line 3864 of file stm32f4xx_hal_dfsdm.c.

◆ HAL_DFSDM_DataIn2_SourceSelection()

void HAL_DFSDM_DataIn2_SourceSelection ( uint32_t  source)

Select the source for DataIn2 signals for DFSDM1/2.

Parameters
sourceDATAIN2_DFSDM2_PAD. DATAIN2_DFSDM2_DATAIN3. DATAIN2_DFSDM1_PAD. DATAIN2_DFSDM1_DATAIN3.
Return values
None

Definition at line 3895 of file stm32f4xx_hal_dfsdm.c.

◆ HAL_DFSDM_DataIn4_SourceSelection()

void HAL_DFSDM_DataIn4_SourceSelection ( uint32_t  source)

Select the source for DataIn4 signals for DFSDM2.

Parameters
sourceDATAIN4_DFSDM2_PAD. DATAIN4_DFSDM2_DATAIN5
Return values
None

Definition at line 3924 of file stm32f4xx_hal_dfsdm.c.

◆ HAL_DFSDM_DataIn6_SourceSelection()

void HAL_DFSDM_DataIn6_SourceSelection ( uint32_t  source)

Select the source for DataIn6 signals for DFSDM2.

Parameters
sourceDATAIN6_DFSDM2_PAD. DATAIN6_DFSDM2_DATAIN7.
Return values
None

Definition at line 3942 of file stm32f4xx_hal_dfsdm.c.

◆ HAL_DFSDM_DisableDelayClock()

void HAL_DFSDM_DisableDelayClock ( uint32_t  MCHDLY)

Disable Delay Clock for DFSDM1/2.

Parameters
MCHDLYHAL_MCHDLY_CLOCK_DFSDM2. HAL_MCHDLY_CLOCK_DFSDM1.
Note
The SYSCFG clock marco __HAL_RCC_SYSCFG_CLK_ENABLE() must be called before HAL_DFSDM_DisableDelayClock()
Return values
None

Definition at line 3751 of file stm32f4xx_hal_dfsdm.c.

◆ HAL_DFSDM_EnableDelayClock()

void HAL_DFSDM_EnableDelayClock ( uint32_t  MCHDLY)

Enable Delay Clock for DFSDM1/2.

Parameters
MCHDLYHAL_MCHDLY_CLOCK_DFSDM2. HAL_MCHDLY_CLOCK_DFSDM1.
Note
The SYSCFG clock marco __HAL_RCC_SYSCFG_CLK_ENABLE() must be called before HAL_DFSDM_EnableDelayClock()
Return values
None

Definition at line 3778 of file stm32f4xx_hal_dfsdm.c.