Go to the documentation of this file.
273 #ifdef HAL_DFSDM_MODULE_ENABLED
274 #if defined (STM32F765xx) || defined(STM32F767xx) || defined(STM32F769xx) || defined(STM32F777xx) || defined(STM32F779xx)
286 #define DFSDM_FLTCR1_MSB_RCH_OFFSET 8
288 #define DFSDM_MSB_MASK 0xFFFF0000U
289 #define DFSDM_LSB_MASK 0x0000FFFFU
290 #define DFSDM_CKAB_TIMEOUT 5000U
291 #define DFSDM1_CHANNEL_NUMBER 8U
301 __IO uint32_t v_dfsdm1ChannelCounter = 0;
311 static uint32_t DFSDM_GetInjChannelsNbr(uint32_t Channels);
354 if(hdfsdm_channel ==
NULL)
373 if(a_dfsdm1ChannelHandle[DFSDM_GetChannelFromInstance(hdfsdm_channel->
Instance)] !=
NULL)
378 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
384 if(hdfsdm_channel->MspInitCallback ==
NULL)
388 hdfsdm_channel->MspInitCallback(hdfsdm_channel);
395 v_dfsdm1ChannelCounter++;
398 if(v_dfsdm1ChannelCounter == 1)
448 a_dfsdm1ChannelHandle[DFSDM_GetChannelFromInstance(hdfsdm_channel->
Instance)] = hdfsdm_channel;
461 if(hdfsdm_channel ==
NULL)
470 if(a_dfsdm1ChannelHandle[DFSDM_GetChannelFromInstance(hdfsdm_channel->
Instance)] ==
NULL)
479 v_dfsdm1ChannelCounter--;
482 if(v_dfsdm1ChannelCounter == 0)
488 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
489 if(hdfsdm_channel->MspDeInitCallback ==
NULL)
493 hdfsdm_channel->MspDeInitCallback(hdfsdm_channel);
536 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
551 HAL_DFSDM_Channel_CallbackIDTypeDef CallbackID,
552 pDFSDM_Channel_CallbackTypeDef pCallback)
556 if(pCallback ==
NULL)
567 case HAL_DFSDM_CHANNEL_CKAB_CB_ID :
568 hdfsdm_channel->CkabCallback = pCallback;
570 case HAL_DFSDM_CHANNEL_SCD_CB_ID :
571 hdfsdm_channel->ScdCallback = pCallback;
573 case HAL_DFSDM_CHANNEL_MSPINIT_CB_ID :
574 hdfsdm_channel->MspInitCallback = pCallback;
576 case HAL_DFSDM_CHANNEL_MSPDEINIT_CB_ID :
577 hdfsdm_channel->MspDeInitCallback = pCallback;
589 case HAL_DFSDM_CHANNEL_MSPINIT_CB_ID :
590 hdfsdm_channel->MspInitCallback = pCallback;
592 case HAL_DFSDM_CHANNEL_MSPDEINIT_CB_ID :
593 hdfsdm_channel->MspDeInitCallback = pCallback;
623 HAL_DFSDM_Channel_CallbackIDTypeDef CallbackID)
631 case HAL_DFSDM_CHANNEL_CKAB_CB_ID :
634 case HAL_DFSDM_CHANNEL_SCD_CB_ID :
637 case HAL_DFSDM_CHANNEL_MSPINIT_CB_ID :
640 case HAL_DFSDM_CHANNEL_MSPDEINIT_CB_ID :
653 case HAL_DFSDM_CHANNEL_MSPINIT_CB_ID :
656 case HAL_DFSDM_CHANNEL_MSPDEINIT_CB_ID :
721 channel = DFSDM_GetChannelFromInstance(hdfsdm_channel->
Instance);
774 channel = DFSDM_GetChannelFromInstance(hdfsdm_channel->
Instance);
785 if((Timeout == 0) || ((
HAL_GetTick()-tickstart) > Timeout))
826 channel = DFSDM_GetChannelFromInstance(hdfsdm_channel->
Instance);
860 channel = DFSDM_GetChannelFromInstance(hdfsdm_channel->
Instance);
933 channel = DFSDM_GetChannelFromInstance(hdfsdm_channel->
Instance);
955 uint32_t BreakSignal)
1008 channel = DFSDM_GetChannelFromInstance(hdfsdm_channel->
Instance);
1019 if((Timeout == 0) || ((
HAL_GetTick()-tickstart) > Timeout))
1060 channel = DFSDM_GetChannelFromInstance(hdfsdm_channel->
Instance);
1079 uint32_t BreakSignal)
1152 channel = DFSDM_GetChannelFromInstance(hdfsdm_channel->
Instance);
1229 return hdfsdm_channel->
State;
1259 if(hdfsdm_filter ==
NULL)
1290 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
1300 if(hdfsdm_filter->MspInitCallback ==
NULL)
1304 hdfsdm_filter->MspInitCallback(hdfsdm_filter);
1386 if(hdfsdm_filter ==
NULL)
1398 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
1399 if(hdfsdm_filter->MspDeInitCallback ==
NULL)
1403 hdfsdm_filter->MspDeInitCallback(hdfsdm_filter);
1444 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
1462 HAL_DFSDM_Filter_CallbackIDTypeDef CallbackID,
1463 pDFSDM_Filter_CallbackTypeDef pCallback)
1467 if(pCallback ==
NULL)
1470 hdfsdm_filter->
ErrorCode = DFSDM_FILTER_ERROR_INVALID_CALLBACK;
1480 case HAL_DFSDM_FILTER_REGCONV_COMPLETE_CB_ID :
1481 hdfsdm_filter->RegConvCpltCallback = pCallback;
1483 case HAL_DFSDM_FILTER_REGCONV_HALFCOMPLETE_CB_ID :
1484 hdfsdm_filter->RegConvHalfCpltCallback = pCallback;
1486 case HAL_DFSDM_FILTER_INJCONV_COMPLETE_CB_ID :
1487 hdfsdm_filter->InjConvCpltCallback = pCallback;
1489 case HAL_DFSDM_FILTER_INJCONV_HALFCOMPLETE_CB_ID :
1490 hdfsdm_filter->InjConvHalfCpltCallback = pCallback;
1492 case HAL_DFSDM_FILTER_ERROR_CB_ID :
1493 hdfsdm_filter->ErrorCallback = pCallback;
1495 case HAL_DFSDM_FILTER_MSPINIT_CB_ID :
1496 hdfsdm_filter->MspInitCallback = pCallback;
1498 case HAL_DFSDM_FILTER_MSPDEINIT_CB_ID :
1499 hdfsdm_filter->MspDeInitCallback = pCallback;
1503 hdfsdm_filter->
ErrorCode = DFSDM_FILTER_ERROR_INVALID_CALLBACK;
1513 case HAL_DFSDM_FILTER_MSPINIT_CB_ID :
1514 hdfsdm_filter->MspInitCallback = pCallback;
1516 case HAL_DFSDM_FILTER_MSPDEINIT_CB_ID :
1517 hdfsdm_filter->MspDeInitCallback = pCallback;
1521 hdfsdm_filter->
ErrorCode = DFSDM_FILTER_ERROR_INVALID_CALLBACK;
1530 hdfsdm_filter->
ErrorCode = DFSDM_FILTER_ERROR_INVALID_CALLBACK;
1554 HAL_DFSDM_Filter_CallbackIDTypeDef CallbackID)
1562 case HAL_DFSDM_FILTER_REGCONV_COMPLETE_CB_ID :
1565 case HAL_DFSDM_FILTER_REGCONV_HALFCOMPLETE_CB_ID :
1568 case HAL_DFSDM_FILTER_INJCONV_COMPLETE_CB_ID :
1571 case HAL_DFSDM_FILTER_INJCONV_HALFCOMPLETE_CB_ID :
1574 case HAL_DFSDM_FILTER_ERROR_CB_ID :
1577 case HAL_DFSDM_FILTER_MSPINIT_CB_ID :
1580 case HAL_DFSDM_FILTER_MSPDEINIT_CB_ID :
1585 hdfsdm_filter->
ErrorCode = DFSDM_FILTER_ERROR_INVALID_CALLBACK;
1595 case HAL_DFSDM_FILTER_MSPINIT_CB_ID :
1598 case HAL_DFSDM_FILTER_MSPDEINIT_CB_ID :
1603 hdfsdm_filter->
ErrorCode = DFSDM_FILTER_ERROR_INVALID_CALLBACK;
1612 hdfsdm_filter->
ErrorCode = DFSDM_FILTER_ERROR_INVALID_CALLBACK;
1627 pDFSDM_Filter_AwdCallbackTypeDef pCallback)
1631 if(pCallback ==
NULL)
1634 hdfsdm_filter->
ErrorCode = DFSDM_FILTER_ERROR_INVALID_CALLBACK;
1642 hdfsdm_filter->AwdCallback = pCallback;
1647 hdfsdm_filter->
ErrorCode = DFSDM_FILTER_ERROR_INVALID_CALLBACK;
1672 hdfsdm_filter->
ErrorCode = DFSDM_FILTER_ERROR_INVALID_CALLBACK;
1710 uint32_t ContinuousMode)
1727 hdfsdm_filter->
Instance->
FLTCR1 |= (uint32_t) (((Channel & DFSDM_MSB_MASK) << DFSDM_FLTCR1_MSB_RCH_OFFSET) |
1732 hdfsdm_filter->
Instance->
FLTCR1 |= (uint32_t) ((Channel & DFSDM_MSB_MASK) << DFSDM_FLTCR1_MSB_RCH_OFFSET);
1835 DFSDM_RegConvStart(hdfsdm_filter);
1878 if((Timeout == 0) || ((
HAL_GetTick()-tickstart) > Timeout))
1890 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
1891 hdfsdm_filter->ErrorCallback(hdfsdm_filter);
1934 DFSDM_RegConvStop(hdfsdm_filter);
1962 DFSDM_RegConvStart(hdfsdm_filter);
1998 DFSDM_RegConvStop(hdfsdm_filter);
2026 if((pData ==
NULL) || (Length == 0))
2057 DFSDM_DMARegularHalfConvCplt :
NULL;
2061 (uint32_t) pData, Length) !=
HAL_OK)
2070 DFSDM_RegConvStart(hdfsdm_filter);
2103 if((pData ==
NULL) || (Length == 0))
2134 DFSDM_DMARegularHalfConvCplt :
NULL;
2138 (uint32_t) pData, Length) !=
HAL_OK)
2147 DFSDM_RegConvStart(hdfsdm_filter);
2190 DFSDM_RegConvStop(hdfsdm_filter);
2243 DFSDM_InjConvStart(hdfsdm_filter);
2286 if((Timeout == 0) || ((
HAL_GetTick()-tickstart) > Timeout))
2298 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
2299 hdfsdm_filter->ErrorCallback(hdfsdm_filter);
2352 DFSDM_InjConvStop(hdfsdm_filter);
2380 DFSDM_InjConvStart(hdfsdm_filter);
2416 DFSDM_InjConvStop(hdfsdm_filter);
2444 if((pData ==
NULL) || (Length == 0))
2473 DFSDM_DMAInjectedHalfConvCplt :
NULL;
2477 (uint32_t) pData, Length) !=
HAL_OK)
2486 DFSDM_InjConvStart(hdfsdm_filter);
2519 if((pData ==
NULL) || (Length == 0))
2548 DFSDM_DMAInjectedHalfConvCplt :
NULL;
2552 (uint32_t) pData, Length) !=
HAL_OK)
2561 DFSDM_InjConvStart(hdfsdm_filter);
2604 DFSDM_InjConvStop(hdfsdm_filter);
2674 awdParam->HighBreakSignal);
2677 awdParam->LowBreakSignal);
2682 DFSDM_FLTCR2_AWDIE);
2893 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
2894 hdfsdm_filter->ErrorCallback(hdfsdm_filter);
2910 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
2911 hdfsdm_filter->ErrorCallback(hdfsdm_filter);
2921 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
2922 hdfsdm_filter->RegConvCpltCallback(hdfsdm_filter);
2944 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
2945 hdfsdm_filter->InjConvCpltCallback(hdfsdm_filter);
2974 uint32_t threshold = 0;
2975 uint32_t channel = 0;
2984 while((reg & 1) == 0)
2995 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
2996 hdfsdm_filter->AwdCallback(hdfsdm_filter, channel, threshold);
3007 uint32_t channel = 0;
3011 while(channel < DFSDM1_CHANNEL_NUMBER)
3014 if(((reg & 1) != 0) && (a_dfsdm1ChannelHandle[channel] !=
NULL))
3023 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
3024 a_dfsdm1ChannelHandle[channel]->CkabCallback(a_dfsdm1ChannelHandle[channel]);
3040 uint32_t channel = 0;
3044 while((reg & 1) == 0)
3054 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
3055 a_dfsdm1ChannelHandle[channel]->ScdCallback(a_dfsdm1ChannelHandle[channel]);
3134 uint32_t Channel, uint32_t Threshold)
3187 return hdfsdm_filter->
State;
3225 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
3226 hdfsdm_filter->RegConvHalfCpltCallback(hdfsdm_filter);
3243 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
3244 hdfsdm_filter->RegConvCpltCallback(hdfsdm_filter);
3261 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
3262 hdfsdm_filter->InjConvHalfCpltCallback(hdfsdm_filter);
3279 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
3280 hdfsdm_filter->InjConvCpltCallback(hdfsdm_filter);
3300 #if (USE_HAL_DFSDM_REGISTER_CALLBACKS == 1)
3301 hdfsdm_filter->ErrorCallback(hdfsdm_filter);
3312 static uint32_t DFSDM_GetInjChannelsNbr(uint32_t Channels)
3314 uint32_t nbChannels = 0;
3318 tmp = (uint32_t) (Channels & DFSDM_LSB_MASK);
3325 tmp = (uint32_t) (tmp >> 1);
3337 uint32_t channel = 0xFF;
#define assert_param(expr)
Include module's header file.
HAL_StatusTypeDef HAL_DFSDM_FilterPollForInjConversion(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Timeout)
#define IS_DFSDM_FILTER_OVS_RATIO(RATIO)
#define DFSDM_CHCFGR1_CKOUTSRC
#define DFSDM_FLTCR1_RSWSTART
HAL_StatusTypeDef
HAL Status structures definition
#define IS_DFSDM_FILTER_REG_TRIGGER(TRIG)
#define IS_DFSDM_CONTINUOUS_MODE(MODE)
#define DFSDM_FLTCR2_SCDIE
#define DFSDM_CONTINUOUS_CONV_ON
#define IS_DFSDM_BREAK_SIGNALS(VALUE)
DFSDM_Channel_OutputClockTypeDef OutputClock
#define DFSDM_FLTICR_CLRSCDF_Pos
#define DFSDM_FLTCR2_REOCIE
#define DFSDM_FLTCR2_AWDCH_Pos
void(* XferHalfCpltCallback)(struct __DMA_HandleTypeDef *hdma)
#define DFSDM_FLTAWCFR_CLRAWLTF
#define DFSDM_FLTAWSR_AWHTF_Pos
DMA handle Structure definition.
#define DFSDM_FLTCNVTIMR_CNVCNT
int32_t HAL_DFSDM_FilterGetExdMaxValue(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
HAL_StatusTypeDef HAL_DFSDM_FilterDeInit(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
#define IS_DFSDM_REGULAR_CHANNEL(CHANNEL)
#define DFSDM_CHCFGR1_CHINSEL
#define IS_DFSDM_CHANNEL_INPUT_PINS(PINS)
HAL_StatusTypeDef HAL_DFSDM_FilterInit(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
@ HAL_DFSDM_FILTER_STATE_REG
#define DFSDM_FLTEXMAX_EXMAX_Pos
#define IS_DFSDM_CHANNEL_ALL_INSTANCE(INSTANCE)
#define DFSDM_FLTJDATAR_JDATA_Pos
#define DFSDM_FLTCR1_JSCAN
#define DFSDM_FLTICR_CLRCKABF_Pos
#define DFSDM_CONTINUOUS_CONV_OFF
@ HAL_DFSDM_FILTER_STATE_REG_INJ
DMA_HandleTypeDef * hdmaInj
#define DFSDM_CHAWSCDR_BKSCD_Pos
#define IS_DFSDM_CHANNEL_SCD_THRESHOLD(VALUE)
HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStart_IT(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
void HAL_DFSDM_ChannelScdCallback(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
DFSDM_Channel_SerialInterfaceTypeDef SerialInterface
#define DFSDM_FLTCR1_DFEN
#define IS_DFSDM_CHANNEL_RIGHT_BIT_SHIFT(VALUE)
#define IS_DFSDM_CHANNEL_OUTPUT_CLOCK_DIVIDER(DIVIDER)
#define DFSDM_FLTEXMIN_EXMINCH
#define DFSDM_FLTCR1_JDMAEN
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
HAL_DFSDM_Filter_StateTypeDef HAL_DFSDM_FilterGetState(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
HAL_DFSDM_Channel_StateTypeDef HAL_DFSDM_ChannelGetState(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
#define DFSDM_FILTER_EXT_TRIGGER
#define DFSDM_FILTER_ERROR_DMA
#define DFSDM_FLTCR1_JEXTSEL
void HAL_DFSDM_ChannelMspInit(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
DFSDM_Channel MSP Initialization This function configures the hardware resources used in this example...
#define DFSDM_CHCFGR2_DTRBS
#define IS_DFSDM_FILTER_INTEGRATOR_OVS_RATIO(RATIO)
#define DFSDM_FLTAWLTR_AWLT_Pos
#define DFSDM_FLTCR2_AWDIE
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
#define DFSDM_FLTCR2_ROVRIE
int16_t HAL_DFSDM_ChannelGetAwdValue(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
HAL_StatusTypeDef HAL_DFSDM_ChannelModifyOffset(DFSDM_Channel_HandleTypeDef *hdfsdm_channel, int32_t Offset)
@ HAL_DFSDM_FILTER_STATE_INJ
HAL_StatusTypeDef HAL_DFSDM_ChannelScdStop(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
#define DFSDM_FLTAWHTR_AWHT_Pos
#define DFSDM_CHCFGR1_DFSDMEN
void HAL_DFSDM_FilterMspDeInit(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
DFSDM_Filter MSP De-Initialization This function freeze the hardware resources used in this example.
#define DFSDM_FILTER_ERROR_REGULAR_OVERRUN
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int32_t *pData, uint32_t Length)
#define DFSDM_AWD_LOW_THRESHOLD
#define DFSDM_FLTCR1_JSYNC
#define IS_DFSDM_FILTER_ALL_INSTANCE(INSTANCE)
#define DFSDM_FLTCR1_AWFSEL
int32_t HAL_DFSDM_FilterGetInjectedValue(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
HAL_StatusTypeDef HAL_DFSDM_FilterPollForRegConversion(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Timeout)
HAL_StatusTypeDef HAL_DFSDM_ChannelPollForCkab(DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Timeout)
#define DFSDM_FLTISR_REOCF
#define DFSDM_CHCFGR1_SCDEN
void HAL_DFSDM_FilterInjConvHalfCpltCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
#define DFSDM_FLTCR2_AWDCH
#define IS_DFSDM_FILTER_EXT_TRIG(TRIG)
HAL_StatusTypeDef HAL_DFSDM_FilterRegularMsbStart_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int16_t *pData, uint32_t Length)
#define DFSDM_FLTFCR_IOSR
HAL_DFSDM_Channel_StateTypeDef
HAL DFSDM Channel states definition.
#define DFSDM_FLTCR1_RDMAEN
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
DFSDM filter handle structure definition.
HAL_DFSDM_Channel_StateTypeDef State
#define IS_FUNCTIONAL_STATE(STATE)
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
#define IS_DFSDM_CHANNEL_INPUT(INPUT)
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
DFSDM_Channel_TypeDef * Instance
#define DFSDM_FLTCR2_JOVRIE
#define DFSDM_FLTCR1_JSWSTART
DMA_HandleTypeDef * hdmaReg
#define DFSDM_CHCFGR1_CKOUTDIV_Pos
HAL_StatusTypeDef HAL_DFSDM_FilterAwdStop_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStop_IT(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
HAL_DFSDM_Filter_StateTypeDef State
#define DFSDM_CHCFGR2_OFFSET
#define DFSDM_FLTCR2_EXCH
DFSDM_Filter_TypeDef * Instance
#define IS_DFSDM_FILTER_AWD_DATA_SOURCE(DATA)
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int32_t *pData, uint32_t Length)
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
#define DFSDM_FLTCR2_JEOCIE
#define DFSDM_CHCFGR2_OFFSET_Pos
#define DFSDM_FLTAWLTR_AWLT
int32_t HAL_DFSDM_FilterGetExdMinValue(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
#define DFSDM_CHAWSCDR_AWFOSR
DFSDM_Channel_AwdTypeDef Awd
#define DFSDM_FLTAWHTR_BKAWH
uint32_t HAL_DFSDM_FilterGetError(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
HAL_StatusTypeDef HAL_DFSDM_ChannelScdStop_IT(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
#define DFSDM_FLTRDATAR_RDATACH
DFSDM channel configuration registers.
void HAL_DFSDM_ChannelMspDeInit(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
DFSDM_Channel MSP De-Initialization This function freeze the hardware resources used in this example.
#define DFSDM_FLTCR1_FAST
uint32_t HAL_DFSDM_FilterGetConvTimeValue(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
HAL_StatusTypeDef HAL_DFSDM_ChannelDeInit(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
#define DFSDM_FLTAWHTR_AWHT
#define DFSDM_FILTER_ERROR_INJECTED_OVERRUN
#define DFSDM_FLTRDATAR_RDATA_Pos
void HAL_DFSDM_FilterRegConvCpltCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
Regular conversion complete callback.
HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
FunctionalState InjectedScanMode
#define DFSDM_FLTAWCFR_CLRAWHTF
#define IS_DFSDM_CHANNEL_FILTER_ORDER(ORDER)
#define DFSDM_FLTISR_SCDF
#define DFSDM_CHCFGR1_SPICKSEL
HAL_StatusTypeDef HAL_DFSDM_ChannelInit(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
#define DFSDM_FLTICR_CLRROVRF
#define DFSDM_FILTER_ERROR_NONE
#define DFSDM_CHCFGR1_CKOUTDIV
DFSDM filter analog watchdog parameters structure definition.
#define DFSDM_FLTFCR_FORD
#define IS_DFSDM_INJECTED_CHANNEL(CHANNEL)
void HAL_DFSDM_FilterMspInit(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
DFSDM_Filter MSP Initialization This function configures the hardware resources used in this example.
#define DFSDM_FLTFCR_FOSR
void HAL_DFSDM_ChannelCkabCallback(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
void HAL_DFSDM_FilterRegConvHalfCpltCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
Half regular conversion complete callback.
void HAL_DFSDM_IRQHandler(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
uint32_t InjConvRemaining
@ HAL_DFSDM_CHANNEL_STATE_READY
#define DFSDM_CHAWSCDR_BKSCD
#define DFSDM_CHCFGR1_SITP
HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedMsbStart_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int16_t *pData, uint32_t Length)
#define DFSDM_FLTCR1_JEXTEN
#define IS_DFSDM_FILTER_AWD_THRESHOLD(VALUE)
#define DFSDM_FLTEXMIN_EXMIN
void HAL_DFSDM_FilterErrorCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
#define DFSDM_FLTCR1_RSYNC
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
DFSDM channel handle structure definition.
#define DFSDM_CHAWSCDR_SCDT
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
DFSDM_Filter_InitTypeDef Init
#define DFSDM_FLTISR_SCDF_Pos
#define DFSDM_FLTCR1_RCONT
HAL_StatusTypeDef HAL_DFSDM_FilterConfigRegChannel(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel, uint32_t ContinuousMode)
#define DFSDM_FLTRDATAR_RDATA
FunctionalState Activation
#define DFSDM_FLTCNVTIMR_CNVCNT_Pos
#define DFSDM_CHCFGR1_DATMPX
#define IS_DFSDM_FILTER_SINC_ORDER(ORDER)
HAL_StatusTypeDef HAL_DFSDM_ChannelScdStart(DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Threshold, uint32_t BreakSignal)
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop_DMA(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
DFSDM_Filter_FilterParamTypeDef FilterParam
HAL_StatusTypeDef HAL_DFSDM_FilterExdStart(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel)
#define DFSDM_CHAWSCDR_AWFOSR_Pos
uint32_t InjectedChannelsNbr
void HAL_DFSDM_FilterInjConvCpltCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
#define IS_DFSDM_CHANNEL_FILTER_OVS_RATIO(RATIO)
void(* XferCpltCallback)(struct __DMA_HandleTypeDef *hdma)
#define IS_DFSDM_CHANNEL_SERIAL_INTERFACE_TYPE(MODE)
#define DFSDM_FLTISR_CKABF
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
DFSDM_Channel_InputTypeDef Input
HAL_StatusTypeDef HAL_DFSDM_FilterConfigInjChannel(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel)
#define DFSDM_CHAWSCDR_AWFORD
#define IS_DFSDM_CHANNEL_OFFSET(VALUE)
HAL_DFSDM_Filter_StateTypeDef
HAL DFSDM Filter states definition.
#define DFSDM_FLTCR2_EXCH_Pos
#define DFSDM_FILTER_SYNC_TRIGGER
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
int32_t HAL_DFSDM_FilterGetRegularValue(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
#define DFSDM_FLTISR_CKABF_Pos
#define DFSDM_FILTER_SW_TRIGGER
#define DFSDM_FLTFCR_FOSR_Pos
#define DFSDM_FLTISR_JOVRF
#define DFSDM_FLTAWSR_AWLTF
#define DFSDM_FLTEXMIN_EXMIN_Pos
#define IS_DFSDM_CHANNEL_DATA_PACKING(MODE)
HAL_StatusTypeDef HAL_DFSDM_FilterExdStop(DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
#define DFSDM_FLTISR_ROVRF
DFSDM_Filter_InjectedParamTypeDef InjectedParam
#define DFSDM_CHCFGR1_CKABEN
@ HAL_DFSDM_FILTER_STATE_READY
HAL_StatusTypeDef HAL_DFSDM_ChannelScdStart_IT(DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Threshold, uint32_t BreakSignal)
#define DFSDM_FLTAWLTR_BKAWL
HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStop(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
HAL_StatusTypeDef HAL_DFSDM_FilterAwdStart_IT(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, DFSDM_Filter_AwdParamTypeDef *awdParam)
#define DFSDM_FLTEXMAX_EXMAX
#define IS_DFSDM_CHANNEL_SPI_CLOCK(TYPE)
@ HAL_DFSDM_FILTER_STATE_RESET
DFSDM_Channel_InitTypeDef Init
#define DFSDM_FLTICR_CLRJOVRF
@ HAL_DFSDM_FILTER_STATE_ERROR
HAL_StatusTypeDef HAL_DFSDM_ChannelPollForScd(DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Timeout)
#define DFSDM_FLTCR2_CKABIE
#define DFSDM_CHCFGR1_CHEN
#define DFSDM_FLTISR_JEOCF
#define DFSDM_FLTJDATAR_JDATA
#define DFSDM_CHCFGR2_DTRBS_Pos
void HAL_DFSDM_FilterAwdCallback(DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel, uint32_t Threshold)
#define DFSDM_AWD_HIGH_THRESHOLD
#define DFSDM_CHCFGR1_DATPACK
@ HAL_DFSDM_CHANNEL_STATE_RESET
#define DFSDM_FLTJDATAR_JDATACH
#define IS_DFSDM_FILTER_INJ_TRIGGER(TRIG)
HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStart(DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
DFSDM_Filter_RegularParamTypeDef RegularParam
This file contains all the functions prototypes for the HAL module driver.
void(* XferErrorCallback)(struct __DMA_HandleTypeDef *hdma)
#define DFSDM_FLTEXMAX_EXMAXCH
#define DFSDM_FLTISR_AWDF
#define IS_DFSDM_FILTER_EXT_TRIG_EDGE(EDGE)
#define IS_DFSDM_CHANNEL_OUTPUT_CLOCK(CLOCK)