#include "stm32f4xx_hal.h"
Private define
#define DFSDM_FLTCR1_MSB_RCH_OFFSET
#define DFSDM_MSB_MASK
#define DFSDM_LSB_MASK
#define DFSDM_CKAB_TIMEOUT
#define DFSDM1_CHANNEL_NUMBER
#define DFSDM2_CHANNEL_NUMBER
Private variables
v_dfsdm1ChannelCounter
a_dfsdm1ChannelHandle
Private function prototypes
Exported functions
HAL_DFSDM_ChannelInit(DFSDM_Channel_HandleTypeDef *)
if
(hdfsdm_channel == NULL)
if
(IS_DFSDM1_CHANNEL_INSTANCE(hdfsdm_channel->Instance))
else
if
(channelHandleTable[DFSDM_GetChannelFromInstance(hdfsdm_channel->Instance)] != NULL)
if
(hdfsdm_channel->MspInitCallback == NULL)
if
(*channelCounterPtr == 1U)
if
(hdfsdm_channel->Init.OutputClock.Activation == ENABLE)
if
(a_dfsdm1ChannelHandle[DFSDM_GetChannelFromInstance(hdfsdm_channel->Instance)] != NULL)
if
(hdfsdm_channel->MspInitCallback == NULL)
if
(v_dfsdm1ChannelCounter == 1U)
if
(hdfsdm_channel->Init.OutputClock.Activation == ENABLE)
HAL_DFSDM_ChannelDeInit(DFSDM_Channel_HandleTypeDef *)
if
(hdfsdm_channel == NULL)
if
(IS_DFSDM1_CHANNEL_INSTANCE(hdfsdm_channel->Instance))
else
if
(channelHandleTable[DFSDM_GetChannelFromInstance(hdfsdm_channel->Instance)] == NULL)
if
(*channelCounterPtr == 0U)
if
(hdfsdm_channel->MspDeInitCallback == NULL)
if
(a_dfsdm1ChannelHandle[DFSDM_GetChannelFromInstance(hdfsdm_channel->Instance)] == NULL)
if
(v_dfsdm1ChannelCounter == 0U)
if
(hdfsdm_channel->MspDeInitCallback == NULL)
HAL_DFSDM_ChannelMspInit(DFSDM_Channel_HandleTypeDef *)
HAL_DFSDM_ChannelMspDeInit(DFSDM_Channel_HandleTypeDef *)
HAL_DFSDM_ChannelCkabStart(DFSDM_Channel_HandleTypeDef *)
if
(hdfsdm_channel->State != HAL_DFSDM_CHANNEL_STATE_READY)
else
if
(IS_DFSDM1_CHANNEL_INSTANCE(hdfsdm_channel->Instance))
else
while
((((filter0Instance->FLTISR & DFSDM_FLTISR_CKABF) >> (DFSDM_FLTISR_CKABF_Pos + channel)) & 1U) != 0U)
if
((HAL_GetTick()-tickstart) > DFSDM_CKAB_TIMEOUT)
while
((((DFSDM1_Filter0->FLTISR & DFSDM_FLTISR_CKABF) >> (DFSDM_FLTISR_CKABF_Pos + channel)) & 1U) != 0U)
if
((HAL_GetTick()-tickstart) > DFSDM_CKAB_TIMEOUT)
if
(status == HAL_OK)
HAL_DFSDM_ChannelPollForCkab(const DFSDM_Channel_HandleTypeDef *, uint32_t)
if
(hdfsdm_channel->State != HAL_DFSDM_CHANNEL_STATE_READY)
else
if
(IS_DFSDM1_CHANNEL_INSTANCE(hdfsdm_channel->Instance))
else
while
((((filter0Instance->FLTISR & DFSDM_FLTISR_CKABF) >> (DFSDM_FLTISR_CKABF_Pos + channel)) & 1U) == 0U)
if
(Timeout != HAL_MAX_DELAY)
if
((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout))
while
((((DFSDM1_Filter0->FLTISR & DFSDM_FLTISR_CKABF) >> (DFSDM_FLTISR_CKABF_Pos + channel)) & 1U) == 0U)
if
(Timeout != HAL_MAX_DELAY)
if
(((HAL_GetTick()-tickstart) > Timeout) || (Timeout == 0U))
HAL_DFSDM_ChannelCkabStop(DFSDM_Channel_HandleTypeDef *)
if
(hdfsdm_channel->State != HAL_DFSDM_CHANNEL_STATE_READY)
else
if
(IS_DFSDM1_CHANNEL_INSTANCE(hdfsdm_channel->Instance))
else
HAL_DFSDM_ChannelCkabStart_IT(DFSDM_Channel_HandleTypeDef *)
if
(hdfsdm_channel->State != HAL_DFSDM_CHANNEL_STATE_READY)
else
if
(IS_DFSDM1_CHANNEL_INSTANCE(hdfsdm_channel->Instance))
else
while
((((filter0Instance->FLTISR & DFSDM_FLTISR_CKABF) >> (DFSDM_FLTISR_CKABF_Pos + channel)) & 1U) != 0U)
if
((HAL_GetTick()-tickstart) > DFSDM_CKAB_TIMEOUT)
if
(status == HAL_OK)
while
((((DFSDM1_Filter0->FLTISR & DFSDM_FLTISR_CKABF) >> (DFSDM_FLTISR_CKABF_Pos + channel)) & 1U) != 0U)
if
((HAL_GetTick()-tickstart) > DFSDM_CKAB_TIMEOUT)
if
(status == HAL_OK)
HAL_DFSDM_ChannelCkabCallback(DFSDM_Channel_HandleTypeDef *)
HAL_DFSDM_ChannelCkabStop_IT(DFSDM_Channel_HandleTypeDef *)
if
(hdfsdm_channel->State != HAL_DFSDM_CHANNEL_STATE_READY)
else
if
(IS_DFSDM1_CHANNEL_INSTANCE(hdfsdm_channel->Instance))
else
HAL_DFSDM_ChannelScdStart(DFSDM_Channel_HandleTypeDef *, uint32_t, uint32_t)
if
(hdfsdm_channel->State != HAL_DFSDM_CHANNEL_STATE_READY)
else
HAL_DFSDM_ChannelPollForScd(const DFSDM_Channel_HandleTypeDef *, uint32_t)
if
(hdfsdm_channel->State != HAL_DFSDM_CHANNEL_STATE_READY)
else
if
(IS_DFSDM1_CHANNEL_INSTANCE(hdfsdm_channel->Instance))
else
while
(((filter0Instance->FLTISR & DFSDM_FLTISR_SCDF) >> (DFSDM_FLTISR_SCDF_Pos + channel)) == 0U)
if
(Timeout != HAL_MAX_DELAY)
if
((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout))
while
(((DFSDM1_Filter0->FLTISR & DFSDM_FLTISR_SCDF) >> (DFSDM_FLTISR_SCDF_Pos + channel)) == 0U)
if
(Timeout != HAL_MAX_DELAY)
if
(((HAL_GetTick()-tickstart) > Timeout) || (Timeout == 0U))
HAL_DFSDM_ChannelScdStop(DFSDM_Channel_HandleTypeDef *)
if
(hdfsdm_channel->State != HAL_DFSDM_CHANNEL_STATE_READY)
else
if
(IS_DFSDM1_CHANNEL_INSTANCE(hdfsdm_channel->Instance))
else
HAL_DFSDM_ChannelScdStart_IT(DFSDM_Channel_HandleTypeDef *, uint32_t, uint32_t)
if
(hdfsdm_channel->State != HAL_DFSDM_CHANNEL_STATE_READY)
else
if
(IS_DFSDM1_CHANNEL_INSTANCE(hdfsdm_channel->Instance))
else
HAL_DFSDM_ChannelScdCallback(DFSDM_Channel_HandleTypeDef *)
HAL_DFSDM_ChannelScdStop_IT(DFSDM_Channel_HandleTypeDef *)
if
(hdfsdm_channel->State != HAL_DFSDM_CHANNEL_STATE_READY)
else
if
(IS_DFSDM1_CHANNEL_INSTANCE(hdfsdm_channel->Instance))
else
HAL_DFSDM_ChannelGetAwdValue(const DFSDM_Channel_HandleTypeDef *)
HAL_DFSDM_ChannelModifyOffset(DFSDM_Channel_HandleTypeDef *, int32_t)
if
(hdfsdm_channel->State != HAL_DFSDM_CHANNEL_STATE_READY)
else
HAL_DFSDM_ChannelGetState(const DFSDM_Channel_HandleTypeDef *)
HAL_DFSDM_FilterInit(DFSDM_Filter_HandleTypeDef *)
if
(hdfsdm_filter == NULL)
if
((hdfsdm_filter->Instance == DFSDM1_Filter0) && ((hdfsdm_filter->Init.RegularParam.Trigger == DFSDM_FILTER_SYNC_TRIGGER) || (hdfsdm_filter->Init.InjectedParam.Trigger == DFSDM_FILTER_SYNC_TRIGGER)))
if
((hdfsdm_filter->Instance == DFSDM2_Filter0) && ((hdfsdm_filter->Init.RegularParam.Trigger == DFSDM_FILTER_SYNC_TRIGGER) || (hdfsdm_filter->Init.InjectedParam.Trigger == DFSDM_FILTER_SYNC_TRIGGER)))
if
(hdfsdm_filter->MspInitCallback == NULL)
if
(hdfsdm_filter->Init.RegularParam.FastMode == ENABLE)
else
if
(hdfsdm_filter->Init.RegularParam.DmaMode == ENABLE)
else
if
(hdfsdm_filter->Init.InjectedParam.Trigger == DFSDM_FILTER_EXT_TRIGGER)
if
(hdfsdm_filter->Init.InjectedParam.ScanMode == ENABLE)
else
if
(hdfsdm_filter->Init.InjectedParam.DmaMode == ENABLE)
else
HAL_DFSDM_FilterDeInit(DFSDM_Filter_HandleTypeDef *)
if
(hdfsdm_filter == NULL)
if
(hdfsdm_filter->MspDeInitCallback == NULL)
HAL_DFSDM_FilterMspInit(DFSDM_Filter_HandleTypeDef *)
HAL_DFSDM_FilterMspDeInit(DFSDM_Filter_HandleTypeDef *)
HAL_DFSDM_FilterConfigRegChannel(DFSDM_Filter_HandleTypeDef *, uint32_t, uint32_t)
if
((hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_RESET) && (hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_ERROR))
if
(ContinuousMode == DFSDM_CONTINUOUS_CONV_ON)
else
else
HAL_DFSDM_FilterConfigInjChannel(DFSDM_Filter_HandleTypeDef *, uint32_t)
if
((hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_RESET) && (hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_ERROR))
else
HAL_DFSDM_FilterRegularStart(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_READY) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_INJ))
else
HAL_DFSDM_FilterPollForRegConversion(DFSDM_Filter_HandleTypeDef *, uint32_t)
if
((hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG) && \ (hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG_INJ))
else
while
((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_REOCF) != DFSDM_FLTISR_REOCF)
if
(Timeout != HAL_MAX_DELAY)
if
(((HAL_GetTick()-tickstart) > Timeout) || (Timeout == 0U))
if
((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_ROVRF) == DFSDM_FLTISR_ROVRF)
if
((hdfsdm_filter->RegularContMode == DFSDM_CONTINUOUS_CONV_OFF) && \ (hdfsdm_filter->RegularTrigger == DFSDM_FILTER_SW_TRIGGER))
HAL_DFSDM_FilterRegularStop(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG) && \ (hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG_INJ))
else
HAL_DFSDM_FilterRegularStart_IT(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_READY) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_INJ))
else
HAL_DFSDM_FilterRegularStop_IT(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG) && \ (hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG_INJ))
else
HAL_DFSDM_FilterRegularStart_DMA(DFSDM_Filter_HandleTypeDef *, int32_t *, uint32_t)
if
((pData == NULL) || (Length == 0U))
else if
((hdfsdm_filter->Instance->FLTCR1 & DFSDM_FLTCR1_RDMAEN) != DFSDM_FLTCR1_RDMAEN)
else if
((hdfsdm_filter->RegularTrigger == DFSDM_FILTER_SW_TRIGGER) && \ (hdfsdm_filter->RegularContMode == DFSDM_CONTINUOUS_CONV_OFF) && \ (hdfsdm_filter->hdmaReg->Init.Mode == DMA_NORMAL) && \ (Length != 1U))
else if
((hdfsdm_filter->RegularTrigger == DFSDM_FILTER_SW_TRIGGER) && \ (hdfsdm_filter->RegularContMode == DFSDM_CONTINUOUS_CONV_OFF) && \ (hdfsdm_filter->hdmaReg->Init.Mode == DMA_CIRCULAR))
else if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_READY) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_INJ))
if
(HAL_DMA_Start_IT(hdfsdm_filter->hdmaReg, (uint32_t)&hdfsdm_filter->Instance->FLTRDATAR, \ (uint32_t) pData, Length) != HAL_OK)
else
else
HAL_DFSDM_FilterRegularMsbStart_DMA(DFSDM_Filter_HandleTypeDef *, int16_t *, uint32_t)
if
((pData == NULL) || (Length == 0U))
else if
((hdfsdm_filter->Instance->FLTCR1 & DFSDM_FLTCR1_RDMAEN) != DFSDM_FLTCR1_RDMAEN)
else if
((hdfsdm_filter->RegularTrigger == DFSDM_FILTER_SW_TRIGGER) && \ (hdfsdm_filter->RegularContMode == DFSDM_CONTINUOUS_CONV_OFF) && \ (hdfsdm_filter->hdmaReg->Init.Mode == DMA_NORMAL) && \ (Length != 1U))
else if
((hdfsdm_filter->RegularTrigger == DFSDM_FILTER_SW_TRIGGER) && \ (hdfsdm_filter->RegularContMode == DFSDM_CONTINUOUS_CONV_OFF) && \ (hdfsdm_filter->hdmaReg->Init.Mode == DMA_CIRCULAR))
else if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_READY) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_INJ))
if
(HAL_DMA_Start_IT(hdfsdm_filter->hdmaReg, (uint32_t)(&hdfsdm_filter->Instance->FLTRDATAR) + 2U, \ (uint32_t) pData, Length) != HAL_OK)
else
else
HAL_DFSDM_FilterRegularStop_DMA(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG) && \ (hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG_INJ))
else
if
(HAL_DMA_Abort(hdfsdm_filter->hdmaReg) != HAL_OK)
else
HAL_DFSDM_FilterGetRegularValue(const DFSDM_Filter_HandleTypeDef *, uint32_t *)
HAL_DFSDM_FilterInjectedStart(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_READY) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_REG))
else
HAL_DFSDM_FilterPollForInjConversion(DFSDM_Filter_HandleTypeDef *, uint32_t)
if
((hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_INJ) && \ (hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG_INJ))
else
while
((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_JEOCF) != DFSDM_FLTISR_JEOCF)
if
(Timeout != HAL_MAX_DELAY)
if
(((HAL_GetTick()-tickstart) > Timeout) || (Timeout == 0U))
if
((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_JOVRF) == DFSDM_FLTISR_JOVRF)
if
(hdfsdm_filter->InjConvRemaining == 0U)
if
(hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_SW_TRIGGER)
HAL_DFSDM_FilterInjectedStop(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_INJ) && \ (hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG_INJ))
else
HAL_DFSDM_FilterInjectedStart_IT(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_READY) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_REG))
else
HAL_DFSDM_FilterInjectedStop_IT(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_INJ) && \ (hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG_INJ))
else
HAL_DFSDM_FilterInjectedStart_DMA(DFSDM_Filter_HandleTypeDef *, int32_t *, uint32_t)
if
((pData == NULL) || (Length == 0U))
else if
((hdfsdm_filter->Instance->FLTCR1 & DFSDM_FLTCR1_JDMAEN) != DFSDM_FLTCR1_JDMAEN)
else if
((hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_SW_TRIGGER) && \ (hdfsdm_filter->hdmaInj->Init.Mode == DMA_NORMAL) && \ (Length > hdfsdm_filter->InjConvRemaining))
else if
((hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_SW_TRIGGER) && \ (hdfsdm_filter->hdmaInj->Init.Mode == DMA_CIRCULAR))
else if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_READY) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_REG))
if
(HAL_DMA_Start_IT(hdfsdm_filter->hdmaInj, (uint32_t)&hdfsdm_filter->Instance->FLTJDATAR, \ (uint32_t) pData, Length) != HAL_OK)
else
else
HAL_DFSDM_FilterInjectedMsbStart_DMA(DFSDM_Filter_HandleTypeDef *, int16_t *, uint32_t)
if
((pData == NULL) || (Length == 0U))
else if
((hdfsdm_filter->Instance->FLTCR1 & DFSDM_FLTCR1_JDMAEN) != DFSDM_FLTCR1_JDMAEN)
else if
((hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_SW_TRIGGER) && \ (hdfsdm_filter->hdmaInj->Init.Mode == DMA_NORMAL) && \ (Length > hdfsdm_filter->InjConvRemaining))
else if
((hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_SW_TRIGGER) && \ (hdfsdm_filter->hdmaInj->Init.Mode == DMA_CIRCULAR))
else if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_READY) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_REG))
if
(HAL_DMA_Start_IT(hdfsdm_filter->hdmaInj, (uint32_t)(&hdfsdm_filter->Instance->FLTJDATAR) + 2U, \ (uint32_t) pData, Length) != HAL_OK)
else
else
HAL_DFSDM_FilterInjectedStop_DMA(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_INJ) && \ (hdfsdm_filter->State != HAL_DFSDM_FILTER_STATE_REG_INJ))
else
if
(HAL_DMA_Abort(hdfsdm_filter->hdmaInj) != HAL_OK)
else
HAL_DFSDM_FilterGetInjectedValue(const DFSDM_Filter_HandleTypeDef *, uint32_t *)
HAL_DFSDM_FilterAwdStart_IT(DFSDM_Filter_HandleTypeDef *, const DFSDM_Filter_AwdParamTypeDef *)
if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_RESET) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_ERROR))
else
HAL_DFSDM_FilterAwdStop_IT(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_RESET) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_ERROR))
else
HAL_DFSDM_FilterExdStart(DFSDM_Filter_HandleTypeDef *, uint32_t)
if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_RESET) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_ERROR))
else
HAL_DFSDM_FilterExdStop(DFSDM_Filter_HandleTypeDef *)
if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_RESET) || \ (hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_ERROR))
else
HAL_DFSDM_FilterGetExdMaxValue(const DFSDM_Filter_HandleTypeDef *, uint32_t *)
HAL_DFSDM_FilterGetExdMinValue(const DFSDM_Filter_HandleTypeDef *, uint32_t *)
HAL_DFSDM_FilterGetConvTimeValue(const DFSDM_Filter_HandleTypeDef *)
HAL_DFSDM_IRQHandler(DFSDM_Filter_HandleTypeDef *)
if
(((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_ROVRF) != 0U) && \ ((hdfsdm_filter->Instance->FLTCR2 & DFSDM_FLTCR2_ROVRIE) != 0U))
else if
(((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_JOVRF) != 0U) && \ ((hdfsdm_filter->Instance->FLTCR2 & DFSDM_FLTCR2_JOVRIE) != 0U))
else if
(((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_REOCF) != 0U) && \ ((hdfsdm_filter->Instance->FLTCR2 & DFSDM_FLTCR2_REOCIE) != 0U))
if
((hdfsdm_filter->RegularContMode == DFSDM_CONTINUOUS_CONV_OFF) && \ (hdfsdm_filter->RegularTrigger == DFSDM_FILTER_SW_TRIGGER))
else if
(((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_JEOCF) != 0U) && \ ((hdfsdm_filter->Instance->FLTCR2 & DFSDM_FLTCR2_JEOCIE) != 0U))
if
(hdfsdm_filter->InjConvRemaining == 0U)
if
(hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_SW_TRIGGER)
else if
(((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_AWDF) != 0U) && \ ((hdfsdm_filter->Instance->FLTCR2 & DFSDM_FLTCR2_AWDIE) != 0U))
if
(threshold == DFSDM_AWD_HIGH_THRESHOLD)
while
((reg & 1U) == 0U)
else if
((hdfsdm_filter->Instance == DFSDM1_Filter0) && \ ((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_CKABF) != 0U) && \ ((hdfsdm_filter->Instance->FLTCR2 & DFSDM_FLTCR2_CKABIE) != 0U))
while
(channel < DFSDM1_CHANNEL_NUMBER)
if
(((reg & 1U) != 0U) && (a_dfsdm1ChannelHandle[channel] != NULL))
if
((a_dfsdm1ChannelHandle[channel]->Instance->CHCFGR1 & DFSDM_CHCFGR1_CKABEN) != 0U)
else if
((hdfsdm_filter->Instance == DFSDM2_Filter0) && \ ((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_CKABF) != 0U) && \ ((hdfsdm_filter->Instance->FLTCR2 & DFSDM_FLTCR2_CKABIE) != 0U))
while
(channel < DFSDM2_CHANNEL_NUMBER)
if
(((reg & 1U) != 0U) && (a_dfsdm2ChannelHandle[channel] != NULL))
if
((a_dfsdm2ChannelHandle[channel]->Instance->CHCFGR1 & DFSDM_CHCFGR1_CKABEN) != 0U)
else if
((hdfsdm_filter->Instance == DFSDM1_Filter0) && \ ((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_SCDF) != 0U) && \ ((hdfsdm_filter->Instance->FLTCR2 & DFSDM_FLTCR2_SCDIE) != 0U))
while
((reg & 1U) == 0U)
else if
((hdfsdm_filter->Instance == DFSDM2_Filter0) && \ ((hdfsdm_filter->Instance->FLTISR & DFSDM_FLTISR_SCDF) != 0U) && \ ((hdfsdm_filter->Instance->FLTCR2 & DFSDM_FLTCR2_SCDIE) != 0U))
while
((reg & 1U) == 0U)
HAL_DFSDM_FilterRegConvCpltCallback(DFSDM_Filter_HandleTypeDef *)
HAL_DFSDM_FilterRegConvHalfCpltCallback(DFSDM_Filter_HandleTypeDef *)
HAL_DFSDM_FilterInjConvCpltCallback(DFSDM_Filter_HandleTypeDef *)
HAL_DFSDM_FilterInjConvHalfCpltCallback(DFSDM_Filter_HandleTypeDef *)
HAL_DFSDM_FilterAwdCallback(DFSDM_Filter_HandleTypeDef *, uint32_t, uint32_t)
HAL_DFSDM_FilterErrorCallback(DFSDM_Filter_HandleTypeDef *)
HAL_DFSDM_FilterGetState(const DFSDM_Filter_HandleTypeDef *)
HAL_DFSDM_FilterGetError(const DFSDM_Filter_HandleTypeDef *)
Private functions
DFSDM_DMARegularHalfConvCplt(DMA_HandleTypeDef *)
DFSDM_DMARegularConvCplt(DMA_HandleTypeDef *)
DFSDM_DMAInjectedHalfConvCplt(DMA_HandleTypeDef *)
DFSDM_DMAInjectedConvCplt(DMA_HandleTypeDef *)
DFSDM_DMAError(DMA_HandleTypeDef *)
DFSDM_GetInjChannelsNbr(uint32_t)
while
(tmp != 0U)
if
((tmp & 1U) != 0U)
DFSDM_GetChannelFromInstance(const DFSDM_Channel_TypeDef *)
if
((Instance == DFSDM1_Channel0) || (Instance == DFSDM2_Channel0))
else if
((Instance == DFSDM1_Channel1) || (Instance == DFSDM2_Channel1))
else if
((Instance == DFSDM1_Channel2) || (Instance == DFSDM2_Channel2))
else if
((Instance == DFSDM1_Channel3) || (Instance == DFSDM2_Channel3))
else if
(Instance == DFSDM2_Channel4)
else if
(Instance == DFSDM2_Channel5)
else if
(Instance == DFSDM2_Channel6)
else
if
(Instance == DFSDM1_Channel0)
else if
(Instance == DFSDM1_Channel1)
else if
(Instance == DFSDM1_Channel2)
else
DFSDM_RegConvStart(DFSDM_Filter_HandleTypeDef *)
if
(hdfsdm_filter->RegularTrigger == DFSDM_FILTER_SW_TRIGGER)
else
if
(hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_INJ)
if
(hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_SW_TRIGGER)
DFSDM_RegConvStop(DFSDM_Filter_HandleTypeDef *)
if
(hdfsdm_filter->RegularTrigger == DFSDM_FILTER_SYNC_TRIGGER)
if
(hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_REG_INJ)
if
(hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_SW_TRIGGER)
DFSDM_InjConvStart(DFSDM_Filter_HandleTypeDef *)
if
(hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_SW_TRIGGER)
else
if
(hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_SYNC_TRIGGER)
else
if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_REG) && \ (hdfsdm_filter->RegularTrigger == DFSDM_FILTER_SW_TRIGGER))
DFSDM_InjConvStop(DFSDM_Filter_HandleTypeDef *)
if
(hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_SYNC_TRIGGER)
else if
(hdfsdm_filter->InjectedTrigger == DFSDM_FILTER_EXT_TRIGGER)
else
if
((hdfsdm_filter->State == HAL_DFSDM_FILTER_STATE_REG_INJ) && \ (hdfsdm_filter->RegularTrigger == DFSDM_FILTER_SW_TRIGGER))