STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
ADC_AnalogWDGConfTypeDef Struct Reference

Structure definition of ADC analog watchdog. More...

#include <stm32h7xx_hal_adc.h>

Public Attributes

uint32_t WatchdogNumber
 Select which ADC analog watchdog is monitoring the selected channel.
uint32_t WatchdogMode
 Configure the ADC analog watchdog mode: single/all/none channels.
uint32_t Channel
 Select which ADC channel to monitor by analog watchdog.
FunctionalState ITMode
 Specify whether the analog watchdog is configured in interrupt or polling mode.
uint32_t HighThreshold
 Configure the ADC analog watchdog High threshold value.
uint32_t LowThreshold
 Configures the ADC analog watchdog Low threshold value.

Detailed Description

Structure definition of ADC analog watchdog.

Note
The setting of these parameters by function HAL_ADC_AnalogWDGConfig() is conditioned to ADC state. ADC state can be either:
  • For all parameters: ADC disabled or ADC enabled without conversion on going on ADC groups regular and injected.

Definition at line 293 of file stm32h7xx_hal_adc.h.

Member Data Documentation

◆ Channel

uint32_t ADC_AnalogWDGConfTypeDef::Channel

Select which ADC channel to monitor by analog watchdog.

For Analog Watchdog 1: this parameter has an effect only if parameter 'WatchdogMode' is configured on single channel (only 1 channel can be monitored). For Analog Watchdog 2 and 3: Several channels can be monitored. To use this feature, call successively the function HAL_ADC_AnalogWDGConfig() for each channel to be added (or removed with value 'ADC_ANALOGWATCHDOG_NONE'). This parameter can be a value of ADC instance - Channel number.

Definition at line 305 of file stm32h7xx_hal_adc.h.

◆ HighThreshold

uint32_t ADC_AnalogWDGConfTypeDef::HighThreshold

Configure the ADC analog watchdog High threshold value.

Depending of ADC resolution selected (16, 14, 12, 10, 8 bits), this parameter must be a number between Min_Data = 0x000 and Max_Data = 0xFFFF, 0x3FFF, 0xFFF, 0x3FF or 0xFF respectively. Note: Analog watchdog 2 and 3 are limited to a resolution of 8 bits: if ADC resolution is 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits the 2 LSB are ignored. Note: If ADC oversampling is enabled, ADC analog watchdog thresholds are impacted: the comparison of analog watchdog thresholds is done on oversampling intermediate computation (after ratio, before shift application): intermediate register bitfield [32:7] (26 most significant bits).

Definition at line 313 of file stm32h7xx_hal_adc.h.

◆ ITMode

FunctionalState ADC_AnalogWDGConfTypeDef::ITMode

Specify whether the analog watchdog is configured in interrupt or polling mode.

This parameter can be set to ENABLE or DISABLE

Definition at line 310 of file stm32h7xx_hal_adc.h.

◆ LowThreshold

uint32_t ADC_AnalogWDGConfTypeDef::LowThreshold

Configures the ADC analog watchdog Low threshold value.

Depending of ADC resolution selected (16, 14, 12, 10, 8 bits), this parameter must be a number between Min_Data = 0x000 and Max_Data = 0xFFFF, 0x3FFF, 0xFFF, 0x3FF or 0xFF respectively. Note: Analog watchdog 2 and 3 are limited to a resolution of 8 bits: if ADC resolution is 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits the 2 LSB are ignored. Note: If ADC oversampling is enabled, ADC analog watchdog thresholds are impacted: the comparison of analog watchdog thresholds is done on oversampling intermediate computation (after ratio, before shift application): intermediate register bitfield [32:7] (26 most significant bits).

Definition at line 323 of file stm32h7xx_hal_adc.h.

◆ WatchdogMode

uint32_t ADC_AnalogWDGConfTypeDef::WatchdogMode

Configure the ADC analog watchdog mode: single/all/none channels.

For Analog Watchdog 1: Configure the ADC analog watchdog mode: single channel or all channels, ADC groups regular and-or injected. For Analog Watchdog 2 and 3: Several channels can be monitored by applying successively the AWD init structure. Channels on ADC group regular and injected are not differentiated: Set value 'ADC_ANALOGWATCHDOG_SINGLE_xxx' to monitor 1 channel, value 'ADC_ANALOGWATCHDOG_ALL_xxx' to monitor all channels, 'ADC_ANALOGWATCHDOG_NONE' to monitor no channel. This parameter can be a value of ADC Analog Watchdog Mode.

Definition at line 300 of file stm32h7xx_hal_adc.h.

◆ WatchdogNumber

uint32_t ADC_AnalogWDGConfTypeDef::WatchdogNumber

Select which ADC analog watchdog is monitoring the selected channel.

For Analog Watchdog 1: Only 1 channel can be monitored (or overall group of channels by setting parameter 'WatchdogMode') For Analog Watchdog 2 and 3: Several channels can be monitored (by successive calls of 'HAL_ADC_AnalogWDGConfig()' for each channel) This parameter can be a value of Analog watchdog - Analog watchdog number.

Definition at line 295 of file stm32h7xx_hal_adc.h.


The documentation for this struct was generated from the following file: