pub enum InterruptMode {
LevelLow,
LevelHigh,
EdgeRising,
EdgeFalling,
EdgeBoth,
Disabled,
}Expand description
Sets when a GPIO pin triggers an interrupt.
Variants§
LevelLow
Interrupt when level is low
LevelHigh
Interrupt when level is high
EdgeRising
Interrupt on rising edge
EdgeFalling
Interrupt on falling edge
EdgeBoth
Interrupt on both rising and falling edges
Disabled
Disable interrupts on this pin
Auto Trait Implementations§
impl Freeze for InterruptMode
impl RefUnwindSafe for InterruptMode
impl Send for InterruptMode
impl Sync for InterruptMode
impl Unpin for InterruptMode
impl UnwindSafe for InterruptMode
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