internal channel is shared between temperature sensor and
Vbat, only 1 measurement path must be enabled.
Once monitored channels are selected, analog watchdog is
enabled.
In case of need to define a single channel to monitor with
analog watchdog from sequencer channel definition, use
helper macro
__LL_ADC_ANALOGWD_CHANNEL_GROUP().
On this STM32 serie, there is only 1 kind of analog watchdog
instance: AWD standard (instance AWD1): channels
monitored: can monitor 1 channel or all channels.groups
monitored: ADC groups regular and-or injected.resolution:
resolution is not limited (corresponds to ADC resolution
configured).
Reference Manual to
LL API cross
reference:
CR1 AWD1CH LL_ADC_SetAnalogWDMonitChannels
CR1 AWD1SGL LL_ADC_SetAnalogWDMonitChannels
CR1 AWD1EN LL_ADC_SetAnalogWDMonitChannels
LL_ADC_GetAnalogWDMonitChannels
__STATIC_INLINE uint32_t
LL_ADC_GetAnalogWDMonitChannels (ADC_TypeDef *
ADCx)
Get ADC analog watchdog monitored channel.
Returned: value can be one of the following values:
LL_ADC_AWD_DISABLE
LL_ADC_AWD_ALL_CHANNELS_REG
LL_ADC_AWD_ALL_CHANNELS_INJ
LL_ADC_AWD_ALL_CHANNELS_REG_INJ
LL_ADC_AWD_CHANNEL_0_REG
LL_ADC_AWD_CHANNEL_0_INJ
LL_ADC_AWD_CHANNEL_0_REG_INJ
LL_ADC_AWD_CHANNEL_1_REG
LL_ADC_AWD_CHANNEL_1_INJ
LL_ADC_AWD_CHANNEL_1_REG_INJ
LL_ADC_AWD_CHANNEL_2_REG
LL_ADC_AWD_CHANNEL_2_INJ
LL_ADC_AWD_CHANNEL_2_REG_INJ
LL_ADC_AWD_CHANNEL_3_REG
LL_ADC_AWD_CHANNEL_3_INJ
LL_ADC_AWD_CHANNEL_3_REG_INJ
LL_ADC_AWD_CHANNEL_4_REG
LL_ADC_AWD_CHANNEL_4_INJ
LL_ADC_AWD_CHANNEL_4_REG_INJ
LL_ADC_AWD_CHANNEL_5_REG
LL_ADC_AWD_CHANNEL_5_INJ
LL_ADC_AWD_CHANNEL_5_REG_INJ
LL_ADC_AWD_CHANNEL_6_REG