RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations | Functions
stm32h7xx_hal_dfsdm.h File Reference

Header file of DFSDM HAL module. More...

#include "stm32h7xx_hal_def.h"

Go to the source code of this file.

Data Structures

struct  DFSDM_Channel_OutputClockTypeDef
 DFSDM channel output clock structure definition. More...
 
struct  DFSDM_Channel_InputTypeDef
 DFSDM channel input structure definition. More...
 
struct  DFSDM_Channel_SerialInterfaceTypeDef
 DFSDM channel serial interface structure definition. More...
 
struct  DFSDM_Channel_AwdTypeDef
 DFSDM channel analog watchdog structure definition. More...
 
struct  DFSDM_Channel_InitTypeDef
 DFSDM channel init structure definition. More...
 
struct  DFSDM_Channel_HandleTypeDef
 DFSDM channel handle structure definition. More...
 
struct  DFSDM_Filter_RegularParamTypeDef
 DFSDM filter regular conversion parameters structure definition. More...
 
struct  DFSDM_Filter_InjectedParamTypeDef
 DFSDM filter injected conversion parameters structure definition. More...
 
struct  DFSDM_Filter_FilterParamTypeDef
 DFSDM filter parameters structure definition. More...
 
struct  DFSDM_Filter_InitTypeDef
 DFSDM filter init structure definition. More...
 
struct  DFSDM_Filter_HandleTypeDef
 DFSDM filter handle structure definition. More...
 
struct  DFSDM_Filter_AwdParamTypeDef
 DFSDM filter analog watchdog parameters structure definition. More...
 

Macros

#define DFSDM_CHANNEL_OUTPUT_CLOCK_SYSTEM   0x00000000U
 
#define DFSDM_CHANNEL_OUTPUT_CLOCK_AUDIO   DFSDM_CHCFGR1_CKOUTSRC
 
#define DFSDM_CHANNEL_EXTERNAL_INPUTS   0x00000000U
 
#define DFSDM_CHANNEL_ADC_OUTPUT   DFSDM_CHCFGR1_DATMPX_0
 
#define DFSDM_CHANNEL_INTERNAL_REGISTER   DFSDM_CHCFGR1_DATMPX_1
 
#define DFSDM_CHANNEL_STANDARD_MODE   0x00000000U
 
#define DFSDM_CHANNEL_INTERLEAVED_MODE   DFSDM_CHCFGR1_DATPACK_0
 
#define DFSDM_CHANNEL_DUAL_MODE   DFSDM_CHCFGR1_DATPACK_1
 
#define DFSDM_CHANNEL_SAME_CHANNEL_PINS   0x00000000U
 
#define DFSDM_CHANNEL_FOLLOWING_CHANNEL_PINS   DFSDM_CHCFGR1_CHINSEL
 
#define DFSDM_CHANNEL_SPI_RISING   0x00000000U
 
#define DFSDM_CHANNEL_SPI_FALLING   DFSDM_CHCFGR1_SITP_0
 
#define DFSDM_CHANNEL_MANCHESTER_RISING   DFSDM_CHCFGR1_SITP_1
 
#define DFSDM_CHANNEL_MANCHESTER_FALLING   DFSDM_CHCFGR1_SITP
 
#define DFSDM_CHANNEL_SPI_CLOCK_EXTERNAL   0x00000000U
 
#define DFSDM_CHANNEL_SPI_CLOCK_INTERNAL   DFSDM_CHCFGR1_SPICKSEL_0
 
#define DFSDM_CHANNEL_SPI_CLOCK_INTERNAL_DIV2_FALLING   DFSDM_CHCFGR1_SPICKSEL_1
 
#define DFSDM_CHANNEL_SPI_CLOCK_INTERNAL_DIV2_RISING   DFSDM_CHCFGR1_SPICKSEL
 
#define DFSDM_CHANNEL_FASTSINC_ORDER   0x00000000U
 
#define DFSDM_CHANNEL_SINC1_ORDER   DFSDM_CHAWSCDR_AWFORD_0
 
#define DFSDM_CHANNEL_SINC2_ORDER   DFSDM_CHAWSCDR_AWFORD_1
 
#define DFSDM_CHANNEL_SINC3_ORDER   DFSDM_CHAWSCDR_AWFORD
 
#define DFSDM_FILTER_SW_TRIGGER   0x00000000U
 
#define DFSDM_FILTER_SYNC_TRIGGER   0x00000001U
 
#define DFSDM_FILTER_EXT_TRIGGER   0x00000002U
 
#define DFSDM_FILTER_EXT_TRIG_TIM1_TRGO   0x00000000U
 
#define DFSDM_FILTER_EXT_TRIG_TIM1_TRGO2   DFSDM_FLTCR1_JEXTSEL_0
 
#define DFSDM_FILTER_EXT_TRIG_TIM8_TRGO   DFSDM_FLTCR1_JEXTSEL_1
 
#define DFSDM_FILTER_EXT_TRIG_TIM8_TRGO2   (DFSDM_FLTCR1_JEXTSEL_0 | DFSDM_FLTCR1_JEXTSEL_1)
 
#define DFSDM_FILTER_EXT_TRIG_TIM3_TRGO   DFSDM_FLTCR1_JEXTSEL_2
 
#define DFSDM_FILTER_EXT_TRIG_TIM4_TRGO   (DFSDM_FLTCR1_JEXTSEL_0 | DFSDM_FLTCR1_JEXTSEL_2)
 
#define DFSDM_FILTER_EXT_TRIG_TIM16_OC1   (DFSDM_FLTCR1_JEXTSEL_2 | DFSDM_FLTCR1_JEXTSEL_1)
 
#define DFSDM_FILTER_EXT_TRIG_TIM6_TRGO   (DFSDM_FLTCR1_JEXTSEL_0 | DFSDM_FLTCR1_JEXTSEL_2 | DFSDM_FLTCR1_JEXTSEL_1)
 
#define DFSDM_FILTER_EXT_TRIG_TIM7_TRGO   DFSDM_FLTCR1_JEXTSEL_3
 
#define DFSDM_FILTER_EXT_TRIG_HRTIM1_ADCTRG1   (DFSDM_FLTCR1_JEXTSEL_3 | DFSDM_FLTCR1_JEXTSEL_0)
 
#define DFSDM_FILTER_EXT_TRIG_HRTIM1_ADCTRG3   (DFSDM_FLTCR1_JEXTSEL_3 | DFSDM_FLTCR1_JEXTSEL_1)
 
#define DFSDM_FILTER_EXT_TRIG_EXTI11   (DFSDM_FLTCR1_JEXTSEL_4 | DFSDM_FLTCR1_JEXTSEL_3)
 
#define DFSDM_FILTER_EXT_TRIG_EXTI15   (DFSDM_FLTCR1_JEXTSEL_4 | DFSDM_FLTCR1_JEXTSEL_3 | DFSDM_FLTCR1_JEXTSEL_0)
 
#define DFSDM_FILTER_EXT_TRIG_LPTIM1_OUT   (DFSDM_FLTCR1_JEXTSEL_4 | DFSDM_FLTCR1_JEXTSEL_3 | DFSDM_FLTCR1_JEXTSEL_1)
 
#define DFSDM_FILTER_EXT_TRIG_LPTIM2_OUT   (DFSDM_FLTCR1_JEXTSEL_4 | DFSDM_FLTCR1_JEXTSEL_3 | DFSDM_FLTCR1_JEXTSEL_1 | DFSDM_FLTCR1_JEXTSEL_0)
 
#define DFSDM_FILTER_EXT_TRIG_LPTIM3_OUT   (DFSDM_FLTCR1_JEXTSEL_4 | DFSDM_FLTCR1_JEXTSEL_3 | DFSDM_FLTCR1_JEXTSEL_2)
 
#define DFSDM_FILTER_EXT_TRIG_RISING_EDGE   DFSDM_FLTCR1_JEXTEN_0
 
#define DFSDM_FILTER_EXT_TRIG_FALLING_EDGE   DFSDM_FLTCR1_JEXTEN_1
 
#define DFSDM_FILTER_EXT_TRIG_BOTH_EDGES   DFSDM_FLTCR1_JEXTEN
 
#define DFSDM_FILTER_FASTSINC_ORDER   0x00000000U
 
#define DFSDM_FILTER_SINC1_ORDER   DFSDM_FLTFCR_FORD_0
 
#define DFSDM_FILTER_SINC2_ORDER   DFSDM_FLTFCR_FORD_1
 
#define DFSDM_FILTER_SINC3_ORDER   (DFSDM_FLTFCR_FORD_0 | DFSDM_FLTFCR_FORD_1)
 
#define DFSDM_FILTER_SINC4_ORDER   DFSDM_FLTFCR_FORD_2
 
#define DFSDM_FILTER_SINC5_ORDER   (DFSDM_FLTFCR_FORD_0 | DFSDM_FLTFCR_FORD_2)
 
#define DFSDM_FILTER_AWD_FILTER_DATA   0x00000000U
 
#define DFSDM_FILTER_AWD_CHANNEL_DATA   DFSDM_FLTCR1_AWFSEL
 
#define DFSDM_FILTER_ERROR_NONE   0x00000000U
 
#define DFSDM_FILTER_ERROR_REGULAR_OVERRUN   0x00000001U
 
#define DFSDM_FILTER_ERROR_INJECTED_OVERRUN   0x00000002U
 
#define DFSDM_FILTER_ERROR_DMA   0x00000003U
 
#define DFSDM_NO_BREAK_SIGNAL   0x00000000U
 
#define DFSDM_BREAK_SIGNAL_0   0x00000001U
 
#define DFSDM_BREAK_SIGNAL_1   0x00000002U
 
#define DFSDM_BREAK_SIGNAL_2   0x00000004U
 
#define DFSDM_BREAK_SIGNAL_3   0x00000008U
 
#define DFSDM_CHANNEL_0   0x00000001U
 
#define DFSDM_CHANNEL_1   0x00010002U
 
#define DFSDM_CHANNEL_2   0x00020004U
 
#define DFSDM_CHANNEL_3   0x00030008U
 
#define DFSDM_CHANNEL_4   0x00040010U
 
#define DFSDM_CHANNEL_5   0x00050020U
 
#define DFSDM_CHANNEL_6   0x00060040U
 
#define DFSDM_CHANNEL_7   0x00070080U
 
#define DFSDM_CONTINUOUS_CONV_OFF   0x00000000U
 
#define DFSDM_CONTINUOUS_CONV_ON   0x00000001U
 
#define DFSDM_AWD_HIGH_THRESHOLD   0x00000000U
 
#define DFSDM_AWD_LOW_THRESHOLD   0x00000001U
 
#define __HAL_DFSDM_CHANNEL_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_DFSDM_CHANNEL_STATE_RESET)
 Reset DFSDM channel handle state.
 
#define __HAL_DFSDM_FILTER_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_DFSDM_FILTER_STATE_RESET)
 Reset DFSDM filter handle state.
 
#define IS_DFSDM_CHANNEL_OUTPUT_CLOCK(CLOCK)
 
#define IS_DFSDM_CHANNEL_OUTPUT_CLOCK_DIVIDER(DIVIDER)   ((2U <= (DIVIDER)) && ((DIVIDER) <= 256U))
 
#define IS_DFSDM_CHANNEL_INPUT(INPUT)
 
#define IS_DFSDM_CHANNEL_DATA_PACKING(MODE)
 
#define IS_DFSDM_CHANNEL_INPUT_PINS(PINS)
 
#define IS_DFSDM_CHANNEL_SERIAL_INTERFACE_TYPE(MODE)
 
#define IS_DFSDM_CHANNEL_SPI_CLOCK(TYPE)
 
#define IS_DFSDM_CHANNEL_FILTER_ORDER(ORDER)
 
#define IS_DFSDM_CHANNEL_FILTER_OVS_RATIO(RATIO)   ((1U <= (RATIO)) && ((RATIO) <= 32U))
 
#define IS_DFSDM_CHANNEL_OFFSET(VALUE)   ((-8388608 <= (VALUE)) && ((VALUE) <= 8388607))
 
#define IS_DFSDM_CHANNEL_RIGHT_BIT_SHIFT(VALUE)   ((VALUE) <= 0x1FU)
 
#define IS_DFSDM_CHANNEL_SCD_THRESHOLD(VALUE)   ((VALUE) <= 0xFFU)
 
#define IS_DFSDM_FILTER_REG_TRIGGER(TRIG)
 
#define IS_DFSDM_FILTER_INJ_TRIGGER(TRIG)
 
#define IS_DFSDM_FILTER_EXT_TRIG(TRIG)
 
#define IS_DFSDM_FILTER_EXT_TRIG_EDGE(EDGE)
 
#define IS_DFSDM_FILTER_SINC_ORDER(ORDER)
 
#define IS_DFSDM_FILTER_OVS_RATIO(RATIO)   ((1U <= (RATIO)) && ((RATIO) <= 1024U))
 
#define IS_DFSDM_FILTER_INTEGRATOR_OVS_RATIO(RATIO)   ((1U <= (RATIO)) && ((RATIO) <= 256U))
 
#define IS_DFSDM_FILTER_AWD_DATA_SOURCE(DATA)
 
#define IS_DFSDM_FILTER_AWD_THRESHOLD(VALUE)   ((-8388608 <= (VALUE)) && ((VALUE) <= 8388607))
 
#define IS_DFSDM_BREAK_SIGNALS(VALUE)   ((VALUE) <= 0xFU)
 
#define IS_DFSDM_REGULAR_CHANNEL(CHANNEL)
 
#define IS_DFSDM_INJECTED_CHANNEL(CHANNEL)   (((CHANNEL) != 0U) && ((CHANNEL) <= 0x000F00FFU))
 
#define IS_DFSDM_CONTINUOUS_MODE(MODE)
 

Enumerations

enum  HAL_DFSDM_Channel_StateTypeDef { HAL_DFSDM_CHANNEL_STATE_RESET = 0x00U , HAL_DFSDM_CHANNEL_STATE_READY = 0x01U , HAL_DFSDM_CHANNEL_STATE_ERROR = 0xFFU }
 HAL DFSDM Channel states definition. More...
 
enum  HAL_DFSDM_Filter_StateTypeDef {
  HAL_DFSDM_FILTER_STATE_RESET = 0x00U , HAL_DFSDM_FILTER_STATE_READY = 0x01U , HAL_DFSDM_FILTER_STATE_REG = 0x02U , HAL_DFSDM_FILTER_STATE_INJ = 0x03U ,
  HAL_DFSDM_FILTER_STATE_REG_INJ = 0x04U , HAL_DFSDM_FILTER_STATE_ERROR = 0xFFU
}
 HAL DFSDM Filter states definition. More...
 

Functions

HAL_StatusTypeDef HAL_DFSDM_ChannelInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelDeInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
void HAL_DFSDM_ChannelMspInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
void HAL_DFSDM_ChannelMspDeInit (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStart (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStart_IT (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStop (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelCkabStop_IT (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelScdStart (DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Threshold, uint32_t BreakSignal)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelScdStart_IT (DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Threshold, uint32_t BreakSignal)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelScdStop (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelScdStop_IT (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
int16_t HAL_DFSDM_ChannelGetAwdValue (const DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelModifyOffset (DFSDM_Channel_HandleTypeDef *hdfsdm_channel, int32_t Offset)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelPollForCkab (const DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Timeout)
 
HAL_StatusTypeDef HAL_DFSDM_ChannelPollForScd (const DFSDM_Channel_HandleTypeDef *hdfsdm_channel, uint32_t Timeout)
 
void HAL_DFSDM_ChannelCkabCallback (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
void HAL_DFSDM_ChannelScdCallback (DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
HAL_DFSDM_Channel_StateTypeDef HAL_DFSDM_ChannelGetState (const DFSDM_Channel_HandleTypeDef *hdfsdm_channel)
 
HAL_StatusTypeDef HAL_DFSDM_FilterInit (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterDeInit (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
void HAL_DFSDM_FilterMspInit (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
void HAL_DFSDM_FilterMspDeInit (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterConfigRegChannel (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel, uint32_t ContinuousMode)
 
HAL_StatusTypeDef HAL_DFSDM_FilterConfigInjChannel (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel)
 
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStart_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int32_t *pData, uint32_t Length)
 
HAL_StatusTypeDef HAL_DFSDM_FilterRegularMsbStart_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int16_t *pData, uint32_t Length)
 
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterRegularStop_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStart_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int32_t *pData, uint32_t Length)
 
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedMsbStart_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, int16_t *pData, uint32_t Length)
 
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterInjectedStop_DMA (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterAwdStart_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, const DFSDM_Filter_AwdParamTypeDef *awdParam)
 
HAL_StatusTypeDef HAL_DFSDM_FilterAwdStop_IT (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterExdStart (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel)
 
HAL_StatusTypeDef HAL_DFSDM_FilterExdStop (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
int32_t HAL_DFSDM_FilterGetRegularValue (const DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
 
int32_t HAL_DFSDM_FilterGetInjectedValue (const DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
 
int32_t HAL_DFSDM_FilterGetExdMaxValue (const DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
 
int32_t HAL_DFSDM_FilterGetExdMinValue (const DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t *Channel)
 
uint32_t HAL_DFSDM_FilterGetConvTimeValue (const DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
void HAL_DFSDM_IRQHandler (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_StatusTypeDef HAL_DFSDM_FilterPollForRegConversion (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Timeout)
 
HAL_StatusTypeDef HAL_DFSDM_FilterPollForInjConversion (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Timeout)
 
void HAL_DFSDM_FilterRegConvCpltCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
void HAL_DFSDM_FilterRegConvHalfCpltCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
void HAL_DFSDM_FilterInjConvCpltCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
void HAL_DFSDM_FilterInjConvHalfCpltCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
void HAL_DFSDM_FilterAwdCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter, uint32_t Channel, uint32_t Threshold)
 
void HAL_DFSDM_FilterErrorCallback (DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
HAL_DFSDM_Filter_StateTypeDef HAL_DFSDM_FilterGetState (const DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 
uint32_t HAL_DFSDM_FilterGetError (const DFSDM_Filter_HandleTypeDef *hdfsdm_filter)
 

Detailed Description

Header file of DFSDM HAL module.

Author
MCD Application Team
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.