#[repr(u32)]pub enum Trigger {
Low = 0,
High = 1,
RisingEdge = 2,
FallingEdge = 3,
EitherEdge = 4,
}
Expand description
Input interrupt triggers.
Variants§
Low = 0
Interrupt when GPIO is low
High = 1
Interrupt when GPIO is high
RisingEdge = 2
Interrupt after GPIO rising edge
FallingEdge = 3
Interrupt after GPIO falling edge
EitherEdge = 4
Interrupt after either a rising or falling edge
Trait Implementations§
source§impl PartialEq for Trigger
impl PartialEq for Trigger
impl Copy for Trigger
impl Eq for Trigger
impl StructuralEq for Trigger
impl StructuralPartialEq for Trigger
Auto Trait Implementations§
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl UnwindSafe for Trigger
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