Enum stm32_hal2::adc::TriggerEdge
source · #[repr(u8)]
pub enum TriggerEdge {
Software,
HardwareRising,
HardwareFalling,
HardwareBoth,
}
Expand description
Select a trigger. Sets CFGR reg, EXTEN field. See G4 RM, table 161: Configuring the trigger polarity for regular external triggers (Also applies for injected)
Variants§
Software
Hardware Trigger detection disabled, software trigger detection enabled
HardwareRising
Hardware Trigger with detection on the rising edge
HardwareFalling
Hardware Trigger with detection on the falling edge
HardwareBoth
Hardware Trigger with detection on both the rising and falling edges
Trait Implementations§
source§impl Clone for TriggerEdge
impl Clone for TriggerEdge
source§fn clone(&self) -> TriggerEdge
fn clone(&self) -> TriggerEdge
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more