#[repr(u8)]pub enum TriggerEdge {
Software = 0,
HardwareRising = 1,
HardwareFalling = 2,
HardwareBoth = 3,
}
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 = 0
Hardware Trigger detection disabled, software trigger detection enabled
HardwareRising = 1
Hardware Trigger with detection on the rising edge
HardwareFalling = 2
Hardware Trigger with detection on the falling edge
HardwareBoth = 3
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 duplicate 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 moreimpl Copy for TriggerEdge
Auto Trait Implementations§
impl Freeze for TriggerEdge
impl RefUnwindSafe for TriggerEdge
impl Send for TriggerEdge
impl Sync for TriggerEdge
impl Unpin for TriggerEdge
impl UnwindSafe for TriggerEdge
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more