#[non_exhaustive]pub enum Event {
AdcReady,
EndOfSamplingPhase,
EndOfConversion,
EndOfSequence,
Overrun,
InjectedChannelEndOfConversion,
InjectedChannelEndOfSequence,
AnalogWatchdog1,
AnalogWatchdog2,
AnalogWatchdog3,
InjectedContextQueueOverfow,
}Expand description
Interrupt and status events.
All events can be cleared by Adc::clear_event or Adc::clear_events.
Some events are also cleared on other conditions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AdcReady
This event is set by hardware after the ADC has been enabled. and when the ADC reaches a state where it is ready to accept conversion requests.
EndOfSamplingPhase
This event is set by hardware during the conversion of any channel (only for regular channels), at the end of the sampling phase.
EndOfConversion
This event is set by hardware at the end of each regular conversion of a channel
when a new data is available in the data register (Adc::data_register).
EndOfSequence
This event is set by hardware at the end of the conversions of a regular sequence of channels.
When this event will occur, will depend on the Adc::sequence_length or
config::ConversionMode.
Overrun
This event is set by hardware when an overrun occurs on a regular channel, meaning that a new
conversion has completed while the Event::EndOfConversion flag was already set.
§Note
If OverrunMode::Preserve is configured and DMA is enabled (config::DmaMode),
the DMA transfer requests are blocked until the event is cleared. (Adc::clear_event)
InjectedChannelEndOfConversion
This event is set by hardware at the end of each injected conversion of a channel when a new data is available in the corresponding ADCx_JDRy register.
InjectedChannelEndOfSequence
This event is set by hardware at the end of the conversions of all injected channels in the group.
AnalogWatchdog1
This event is set by hardware when the converted voltage crosses the values programmed
in the fields LT1[11:0] and HT1[11:0] of ADCx_TR1 register.
AnalogWatchdog2
This event is set by hardware when the converted voltage crosses the values programmed
in the fields LT2[7:0] and HT2[7:0] of ADCx_TR2 register.
AnalogWatchdog3
This event is set by hardware when the converted voltage crosses the values programmed
in the fields LT3[7:0] and HT3[7:0] of ADCx_TR3 register. I
InjectedContextQueueOverfow
This event is set by hardware when an Overflow of the Injected Queue of Context occurs.
Trait Implementations§
Source§impl EnumSetTypePrivate for Event
impl EnumSetTypePrivate for Event
Source§const CONST_HELPER_INSTANCE: __EnumSetConstHelper = __EnumSetConstHelper
const CONST_HELPER_INSTANCE: __EnumSetConstHelper = __EnumSetConstHelper
ConstHelper.Source§const ALL_BITS: Self::Repr = {transmute(0x07ff): <adc::Event as enumset::__internal::EnumSetTypePrivate>::Repr}
const ALL_BITS: Self::Repr = {transmute(0x07ff): <adc::Event as enumset::__internal::EnumSetTypePrivate>::Repr}
Source§const VARIANT_COUNT: u32 = 11u32
const VARIANT_COUNT: u32 = 11u32
Source§type ConstHelper = __EnumSetConstHelper
type ConstHelper = __EnumSetConstHelper
enum_set! macro among other things.