#[repr(u8)]pub enum INTERRUPT_MODE_A {
SYNC_FALLING_EDGE = 0,
SYNC_RISING_EDGE = 1,
SYNC_LOW_LEVEL = 2,
SYNC_HIGH_LEVEL = 3,
SYNC_BOTH_EDGES = 4,
ASYNC_FALLING_EDGE = 8,
ASYNC_RISING_EDGE = 9,
ASYNC_LOW_LEVEL = 10,
ASYNC_HIGH_LEVEL = 11,
}
Expand description
Select pin interrupt mode
Value on reset: 0
Variants§
SYNC_FALLING_EDGE = 0
0: Synchronous interrupt in falling edge
SYNC_RISING_EDGE = 1
1: Synchronous interrupt in rising edge
SYNC_LOW_LEVEL = 2
2: Synchronous interrupt in low level
SYNC_HIGH_LEVEL = 3
3: Synchronous interrupt in high level
SYNC_BOTH_EDGES = 4
4: Synchronous interrupt in both rising and falling edges
ASYNC_FALLING_EDGE = 8
8: Asynchronous interrupt in falling edge
ASYNC_RISING_EDGE = 9
9: Asynchronous interrupt in rising edge
ASYNC_LOW_LEVEL = 10
10: Asynchronous interrupt in low level
ASYNC_HIGH_LEVEL = 11
11: Asynchronous interrupt in high level
Trait Implementations§
Source§impl Clone for INTERRUPT_MODE_A
impl Clone for INTERRUPT_MODE_A
Source§fn clone(&self) -> INTERRUPT_MODE_A
fn clone(&self) -> INTERRUPT_MODE_A
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 moreSource§impl Debug for INTERRUPT_MODE_A
impl Debug for INTERRUPT_MODE_A
Source§impl From<INTERRUPT_MODE_A> for u8
impl From<INTERRUPT_MODE_A> for u8
Source§fn from(variant: INTERRUPT_MODE_A) -> Self
fn from(variant: INTERRUPT_MODE_A) -> Self
Converts to this type from the input type.
Source§impl PartialEq for INTERRUPT_MODE_A
impl PartialEq for INTERRUPT_MODE_A
impl Copy for INTERRUPT_MODE_A
impl Eq for INTERRUPT_MODE_A
impl StructuralPartialEq for INTERRUPT_MODE_A
Auto Trait Implementations§
impl Freeze for INTERRUPT_MODE_A
impl RefUnwindSafe for INTERRUPT_MODE_A
impl Send for INTERRUPT_MODE_A
impl Sync for INTERRUPT_MODE_A
impl Unpin for INTERRUPT_MODE_A
impl UnwindSafe for INTERRUPT_MODE_A
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