pub enum InterruptTrigger {
RisingEdge,
FallingEdge,
HighLevel,
LowLevel,
}Expand description
GPIO interrupt trigger condition (sets GPIO_INT_TYPE + GPIO_INT_POLARITY).
Variants§
RisingEdge
Edge-sensitive, low→high transition.
FallingEdge
Edge-sensitive, high→low transition.
HighLevel
Level-sensitive, asserted while high.
LowLevel
Level-sensitive, asserted while low.
Trait Implementations§
Source§impl Clone for InterruptTrigger
impl Clone for InterruptTrigger
Source§fn clone(&self) -> InterruptTrigger
fn clone(&self) -> InterruptTrigger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InterruptTrigger
Source§impl Debug for InterruptTrigger
impl Debug for InterruptTrigger
impl Eq for InterruptTrigger
Source§impl PartialEq for InterruptTrigger
impl PartialEq for InterruptTrigger
Source§fn eq(&self, other: &InterruptTrigger) -> bool
fn eq(&self, other: &InterruptTrigger) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterruptTrigger
Auto Trait Implementations§
impl Freeze for InterruptTrigger
impl RefUnwindSafe for InterruptTrigger
impl Send for InterruptTrigger
impl Sync for InterruptTrigger
impl Unpin for InterruptTrigger
impl UnsafeUnpin for InterruptTrigger
impl UnwindSafe for InterruptTrigger
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