STM32L486xx HAL User Manual
Functions
Filter operation functions
DFSDM Exported Functions

Filter operation functions. More...

Functions

HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to start regular conversion in polling mode.
HAL_StatusTypeDef HAL_DFSDM_FilterPollForRegConversion (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Timeout)
 This function allows to poll for the end of regular conversion.
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to stop regular conversion in polling mode.
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to start regular conversion in interrupt mode.
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to stop regular conversion in interrupt mode.
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int32_t *pData, uint32_t Length)
 This function allows to start regular conversion in DMA mode.
HAL_StatusTypeDef HAL_DFSDM_FilterRegularMsbStart_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int16_t *pData, uint32_t Length)
 This function allows to start regular conversion in DMA mode and to get only the 16 most significant bits of conversion.
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to stop regular conversion in DMA mode.
int32_t HAL_DFSDM_FilterGetRegularValue (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
 This function allows to get regular conversion value.
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to start injected conversion in polling mode.
HAL_StatusTypeDef HAL_DFSDM_FilterPollForInjConversion (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Timeout)
 This function allows to poll for the end of injected conversion.
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to stop injected conversion in polling mode.
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to start injected conversion in interrupt mode.
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to stop injected conversion in interrupt mode.
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int32_t *pData, uint32_t Length)
 This function allows to start injected conversion in DMA mode.
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedMsbStart_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int16_t *pData, uint32_t Length)
 This function allows to start injected conversion in DMA mode and to get only the 16 most significant bits of conversion.
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to stop injected conversion in DMA mode.
int32_t HAL_DFSDM_FilterGetInjectedValue (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
 This function allows to get injected conversion value.
HAL_StatusTypeDef HAL_DFSDM_FilterAwdStart_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, DFSDM_Filter_AwdParamTypeDef *awdParam)
 This function allows to start filter analog watchdog in interrupt mode.
HAL_StatusTypeDef HAL_DFSDM_FilterAwdStop_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to stop filter analog watchdog in interrupt mode.
HAL_StatusTypeDef HAL_DFSDM_FilterExdStart (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel)
 This function allows to start extreme detector feature.
HAL_StatusTypeDef HAL_DFSDM_FilterExdStop (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to stop extreme detector feature.
int32_t HAL_DFSDM_FilterGetExdMaxValue (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
 This function allows to get extreme detector maximum value.
int32_t HAL_DFSDM_FilterGetExdMinValue (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
 This function allows to get extreme detector minimum value.
uint32_t HAL_DFSDM_FilterGetConvTimeValue (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function allows to get conversion time value.
void HAL_DFSDM_IRQHandler (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 This function handles the DFSDM interrupts.
__weak void HAL_DFSDM_FilterRegConvCpltCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 Regular conversion complete callback.
__weak void HAL_DFSDM_FilterRegConvHalfCpltCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 Half regular conversion complete callback.
__weak void HAL_DFSDM_FilterInjConvCpltCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 Injected conversion complete callback.
__weak void HAL_DFSDM_FilterInjConvHalfCpltCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 Half injected conversion complete callback.
__weak void HAL_DFSDM_FilterAwdCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel, uint32_t Threshold)
 Filter analog watchdog callback.
__weak void HAL_DFSDM_FilterErrorCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 Error callback.

Detailed Description

Filter operation functions.

  ==============================================================================
                    ##### Filter operation functions #####
  ==============================================================================
    [..]  This section provides functions allowing to:
      (+) Start conversion of regular/injected channel.
      (+) Poll for the end of regular/injected conversion.
      (+) Stop conversion of regular/injected channel.
      (+) Start conversion of regular/injected channel and enable interrupt.
      (+) Call the callback functions at the end of regular/injected conversions.
      (+) Stop conversion of regular/injected channel and disable interrupt.
      (+) Start conversion of regular/injected channel and enable DMA transfer.
      (+) Stop conversion of regular/injected channel and disable DMA transfer.
      (+) Start analog watchdog and enable interrupt.
      (+) Call the callback function when analog watchdog occurs.
      (+) Stop analog watchdog and disable interrupt.
      (+) Start extreme detector.
      (+) Stop extreme detector.
      (+) Get result of regular channel conversion.
      (+) Get result of injected channel conversion.
      (+) Get extreme detector maximum and minimum values.
      (+) Get conversion time.
      (+) Handle DFSDM interrupt request.

Function Documentation

void HAL_DFSDM_FilterAwdCallback ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
uint32_t  Channel,
uint32_t  Threshold 
)

Filter analog watchdog callback.

Parameters:
hdfsdm_filterDFSDM filter handle.
ChannelCorresponding channel.
ThresholdLow or high threshold has been reached.
Return values:
None

Definition at line 3159 of file stm32l4xx_hal_dfsdm.c.

Referenced by HAL_DFSDM_Filter_UnRegisterAwdCallback(), HAL_DFSDM_FilterInit(), and HAL_DFSDM_IRQHandler().

HAL_StatusTypeDef HAL_DFSDM_FilterAwdStart_IT ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
DFSDM_Filter_AwdParamTypeDef awdParam 
)
HAL_StatusTypeDef HAL_DFSDM_FilterAwdStop_IT ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to stop filter analog watchdog in interrupt mode.

Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 2709 of file stm32l4xx_hal_dfsdm.c.

References assert_param, HAL_DFSDM_FILTER_STATE_ERROR, HAL_DFSDM_FILTER_STATE_RESET, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.

Error callback.

Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
None

Definition at line 3177 of file stm32l4xx_hal_dfsdm.c.

Referenced by DFSDM_DMAError(), HAL_DFSDM_Filter_UnRegisterCallback(), HAL_DFSDM_FilterInit(), HAL_DFSDM_FilterPollForInjConversion(), HAL_DFSDM_FilterPollForRegConversion(), and HAL_DFSDM_IRQHandler().

HAL_StatusTypeDef HAL_DFSDM_FilterExdStart ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
uint32_t  Channel 
)

This function allows to start extreme detector feature.

Parameters:
hdfsdm_filterDFSDM filter handle.
ChannelChannels where extreme detector is enabled. This parameter can be a values combination of DFSDM Channel Selection.
Return values:
HALstatus

Definition at line 2749 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_LSB_MASK, HAL_DFSDM_FILTER_STATE_ERROR, HAL_DFSDM_FILTER_STATE_RESET, __DFSDM_Filter_HandleTypeDef::Instance, IS_DFSDM_INJECTED_CHANNEL, and __DFSDM_Filter_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DFSDM_FilterExdStop ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to stop extreme detector feature.

Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 2780 of file stm32l4xx_hal_dfsdm.c.

References assert_param, HAL_DFSDM_FILTER_STATE_ERROR, HAL_DFSDM_FILTER_STATE_RESET, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.

This function allows to get conversion time value.

Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
Conversiontime value
Note:
To get time in second, this value has to be divided by DFSDM clock frequency.

Definition at line 2879 of file stm32l4xx_hal_dfsdm.c.

References assert_param, and __DFSDM_Filter_HandleTypeDef::Instance.

int32_t HAL_DFSDM_FilterGetExdMaxValue ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
uint32_t *  Channel 
)

This function allows to get extreme detector maximum value.

Parameters:
hdfsdm_filterDFSDM filter handle.
ChannelCorresponding channel.
Return values:
Extremedetector maximum value This value is between Min_Data = -8388608 and Max_Data = 8388607.

Definition at line 2818 of file stm32l4xx_hal_dfsdm.c.

References assert_param, and __DFSDM_Filter_HandleTypeDef::Instance.

int32_t HAL_DFSDM_FilterGetExdMinValue ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
uint32_t *  Channel 
)

This function allows to get extreme detector minimum value.

Parameters:
hdfsdm_filterDFSDM filter handle.
ChannelCorresponding channel.
Return values:
Extremedetector minimum value This value is between Min_Data = -8388608 and Max_Data = 8388607.

Definition at line 2849 of file stm32l4xx_hal_dfsdm.c.

References assert_param, and __DFSDM_Filter_HandleTypeDef::Instance.

int32_t HAL_DFSDM_FilterGetInjectedValue ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
uint32_t *  Channel 
)

This function allows to get injected conversion value.

Parameters:
hdfsdm_filterDFSDM filter handle.
ChannelCorresponding channel of injected conversion.
Return values:
Injectedconversion value

Definition at line 2630 of file stm32l4xx_hal_dfsdm.c.

References assert_param, and __DFSDM_Filter_HandleTypeDef::Instance.

int32_t HAL_DFSDM_FilterGetRegularValue ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
uint32_t *  Channel 
)

This function allows to get regular conversion value.

Parameters:
hdfsdm_filterDFSDM filter handle.
ChannelCorresponding channel of regular conversion.
Return values:
Regularconversion value

Definition at line 2213 of file stm32l4xx_hal_dfsdm.c.

References assert_param, and __DFSDM_Filter_HandleTypeDef::Instance.

Injected conversion complete callback.

Note:
In interrupt mode, user has to read conversion value in this function using HAL_DFSDM_FilterGetInjectedValue.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
None

Definition at line 3127 of file stm32l4xx_hal_dfsdm.c.

Referenced by DFSDM_DMAInjectedConvCplt(), HAL_DFSDM_Filter_UnRegisterCallback(), HAL_DFSDM_FilterInit(), and HAL_DFSDM_IRQHandler().

Half injected conversion complete callback.

Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
None

Definition at line 3142 of file stm32l4xx_hal_dfsdm.c.

Referenced by DFSDM_DMAInjectedHalfConvCplt(), HAL_DFSDM_Filter_UnRegisterCallback(), and HAL_DFSDM_FilterInit().

HAL_StatusTypeDef HAL_DFSDM_FilterInjectedMsbStart_DMA ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
int16_t *  pData,
uint32_t  Length 
)

This function allows to start injected conversion in DMA mode and to get only the 16 most significant bits of conversion.

Note:
This function should be called only when DFSDM filter instance is in idle state or if regular conversion is ongoing. Please note that data on buffer will contain signed 16 most significant bits of injected conversion.
Parameters:
hdfsdm_filterDFSDM filter handle.
pDataThe destination buffer address.
LengthThe length of data to be transferred from DFSDM filter to memory.
Return values:
HALstatus

Definition at line 2522 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_DMAError(), DFSDM_DMAInjectedConvCplt(), DFSDM_DMAInjectedHalfConvCplt(), DFSDM_FILTER_SW_TRIGGER, DFSDM_InjConvStart(), DMA_CIRCULAR, DMA_NORMAL, HAL_DFSDM_FILTER_STATE_ERROR, HAL_DFSDM_FILTER_STATE_READY, HAL_DFSDM_FILTER_STATE_REG, HAL_DMA_Start_IT(), __DFSDM_Filter_HandleTypeDef::hdmaInj, __DMA_HandleTypeDef::Init, __DFSDM_Filter_HandleTypeDef::InjConvRemaining, __DFSDM_Filter_HandleTypeDef::InjectedTrigger, __DFSDM_Filter_HandleTypeDef::Instance, DMA_InitTypeDef::Mode, __DFSDM_Filter_HandleTypeDef::State, __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.

HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to start injected conversion in polling mode.

Note:
This function should be called only when DFSDM filter instance is in idle state or if regular conversion is ongoing.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 2244 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_InjConvStart(), HAL_DFSDM_FILTER_STATE_READY, HAL_DFSDM_FILTER_STATE_REG, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart_DMA ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
int32_t *  pData,
uint32_t  Length 
)

This function allows to start injected conversion in DMA mode.

Note:
This function should be called only when DFSDM filter instance is in idle state or if regular conversion is ongoing. Please note that data on buffer will contain signed injected conversion value on 24 most significant bits and corresponding channel on 3 least significant bits.
Parameters:
hdfsdm_filterDFSDM filter handle.
pDataThe destination buffer address.
LengthThe length of data to be transferred from DFSDM filter to memory.
Return values:
HALstatus

Definition at line 2447 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_DMAError(), DFSDM_DMAInjectedConvCplt(), DFSDM_DMAInjectedHalfConvCplt(), DFSDM_FILTER_SW_TRIGGER, DFSDM_InjConvStart(), DMA_CIRCULAR, DMA_NORMAL, HAL_DFSDM_FILTER_STATE_ERROR, HAL_DFSDM_FILTER_STATE_READY, HAL_DFSDM_FILTER_STATE_REG, HAL_DMA_Start_IT(), __DFSDM_Filter_HandleTypeDef::hdmaInj, __DMA_HandleTypeDef::Init, __DFSDM_Filter_HandleTypeDef::InjConvRemaining, __DFSDM_Filter_HandleTypeDef::InjectedTrigger, __DFSDM_Filter_HandleTypeDef::Instance, DMA_InitTypeDef::Mode, __DFSDM_Filter_HandleTypeDef::State, __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.

HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart_IT ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to start injected conversion in interrupt mode.

Note:
This function should be called only when DFSDM filter instance is in idle state or if regular conversion is ongoing.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 2378 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_InjConvStart(), HAL_DFSDM_FILTER_STATE_READY, HAL_DFSDM_FILTER_STATE_REG, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to stop injected conversion in polling mode.

Note:
This function should be called only if injected conversion is ongoing.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 2348 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_InjConvStop(), HAL_DFSDM_FILTER_STATE_INJ, HAL_DFSDM_FILTER_STATE_REG_INJ, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop_DMA ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to stop injected conversion in DMA mode.

Note:
This function should be called only if injected conversion is ongoing.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 2591 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_InjConvStop(), HAL_DFSDM_FILTER_STATE_ERROR, HAL_DFSDM_FILTER_STATE_INJ, HAL_DFSDM_FILTER_STATE_REG_INJ, HAL_DMA_Abort(), __DFSDM_Filter_HandleTypeDef::hdmaInj, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop_IT ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to stop injected conversion in interrupt mode.

Note:
This function should be called only if injected conversion is ongoing.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 2409 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_InjConvStop(), HAL_DFSDM_FILTER_STATE_INJ, HAL_DFSDM_FILTER_STATE_REG_INJ, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DFSDM_FilterPollForInjConversion ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
uint32_t  Timeout 
)
HAL_StatusTypeDef HAL_DFSDM_FilterPollForRegConversion ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
uint32_t  Timeout 
)

Regular conversion complete callback.

Note:
In interrupt mode, user has to read conversion value in this function using HAL_DFSDM_FilterGetRegularValue.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
None

Definition at line 3095 of file stm32l4xx_hal_dfsdm.c.

Referenced by DFSDM_DMARegularConvCplt(), HAL_DFSDM_Filter_UnRegisterCallback(), HAL_DFSDM_FilterInit(), and HAL_DFSDM_IRQHandler().

Half regular conversion complete callback.

Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
None

Definition at line 3110 of file stm32l4xx_hal_dfsdm.c.

Referenced by DFSDM_DMARegularHalfConvCplt(), HAL_DFSDM_Filter_UnRegisterCallback(), and HAL_DFSDM_FilterInit().

HAL_StatusTypeDef HAL_DFSDM_FilterRegularMsbStart_DMA ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
int16_t *  pData,
uint32_t  Length 
)

This function allows to start regular conversion in DMA mode and to get only the 16 most significant bits of conversion.

Note:
This function should be called only when DFSDM filter instance is in idle state or if injected conversion is ongoing. Please note that data on buffer will contain signed 16 most significant bits of regular conversion.
Parameters:
hdfsdm_filterDFSDM filter handle.
pDataThe destination buffer address.
LengthThe length of data to be transferred from DFSDM filter to memory.
Return values:
HALstatus

Definition at line 2103 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_CONTINUOUS_CONV_OFF, DFSDM_DMAError(), DFSDM_DMARegularConvCplt(), DFSDM_DMARegularHalfConvCplt(), DFSDM_FILTER_SW_TRIGGER, DFSDM_RegConvStart(), DMA_CIRCULAR, DMA_NORMAL, HAL_DFSDM_FILTER_STATE_ERROR, HAL_DFSDM_FILTER_STATE_INJ, HAL_DFSDM_FILTER_STATE_READY, HAL_DMA_Start_IT(), __DFSDM_Filter_HandleTypeDef::hdmaReg, __DMA_HandleTypeDef::Init, __DFSDM_Filter_HandleTypeDef::Instance, DMA_InitTypeDef::Mode, __DFSDM_Filter_HandleTypeDef::RegularContMode, __DFSDM_Filter_HandleTypeDef::RegularTrigger, __DFSDM_Filter_HandleTypeDef::State, __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.

HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to start regular conversion in polling mode.

Note:
This function should be called only when DFSDM filter instance is in idle state or if injected conversion is ongoing.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 1833 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_RegConvStart(), HAL_DFSDM_FILTER_STATE_INJ, HAL_DFSDM_FILTER_STATE_READY, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart_DMA ( DFSDM_Filter_HandleTypeDef hdfsdm_filter,
int32_t *  pData,
uint32_t  Length 
)

This function allows to start regular conversion in DMA mode.

Note:
This function should be called only when DFSDM filter instance is in idle state or if injected conversion is ongoing. Please note that data on buffer will contain signed regular conversion value on 24 most significant bits and corresponding channel on 3 least significant bits.
Parameters:
hdfsdm_filterDFSDM filter handle.
pDataThe destination buffer address.
LengthThe length of data to be transferred from DFSDM filter to memory.
Return values:
HALstatus

Definition at line 2026 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_CONTINUOUS_CONV_OFF, DFSDM_DMAError(), DFSDM_DMARegularConvCplt(), DFSDM_DMARegularHalfConvCplt(), DFSDM_FILTER_SW_TRIGGER, DFSDM_RegConvStart(), DMA_CIRCULAR, DMA_NORMAL, HAL_DFSDM_FILTER_STATE_ERROR, HAL_DFSDM_FILTER_STATE_INJ, HAL_DFSDM_FILTER_STATE_READY, HAL_DMA_Start_IT(), __DFSDM_Filter_HandleTypeDef::hdmaReg, __DMA_HandleTypeDef::Init, __DFSDM_Filter_HandleTypeDef::Instance, DMA_InitTypeDef::Mode, __DFSDM_Filter_HandleTypeDef::RegularContMode, __DFSDM_Filter_HandleTypeDef::RegularTrigger, __DFSDM_Filter_HandleTypeDef::State, __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.

HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart_IT ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to start regular conversion in interrupt mode.

Note:
This function should be called only when DFSDM filter instance is in idle state or if injected conversion is ongoing.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 1957 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_RegConvStart(), HAL_DFSDM_FILTER_STATE_INJ, HAL_DFSDM_FILTER_STATE_READY, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to stop regular conversion in polling mode.

Note:
This function should be called only if regular conversion is ongoing.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 1927 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_RegConvStop(), HAL_DFSDM_FILTER_STATE_REG, HAL_DFSDM_FILTER_STATE_REG_INJ, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop_DMA ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to stop regular conversion in DMA mode.

Note:
This function should be called only if regular conversion is ongoing.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 2174 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_RegConvStop(), HAL_DFSDM_FILTER_STATE_ERROR, HAL_DFSDM_FILTER_STATE_REG, HAL_DFSDM_FILTER_STATE_REG_INJ, HAL_DMA_Abort(), __DFSDM_Filter_HandleTypeDef::hdmaReg, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop_IT ( DFSDM_Filter_HandleTypeDef hdfsdm_filter)

This function allows to stop regular conversion in interrupt mode.

Note:
This function should be called only if regular conversion is ongoing.
Parameters:
hdfsdm_filterDFSDM filter handle.
Return values:
HALstatus

Definition at line 1988 of file stm32l4xx_hal_dfsdm.c.

References assert_param, DFSDM_RegConvStop(), HAL_DFSDM_FILTER_STATE_REG, HAL_DFSDM_FILTER_STATE_REG_INJ, __DFSDM_Filter_HandleTypeDef::Instance, and __DFSDM_Filter_HandleTypeDef::State.