Enum lis3dh_async::InterruptMode
source · pub enum InterruptMode {
OrCombination,
Movement,
AndCombination,
Position,
}
Expand description
When to generate an interrupt.
Internal representation:
AOI | 6D | Interrupt mode |
---|---|---|
0 | 0 | OR combination of interrupt events |
0 | 1 | 6-direction movement recognition |
1 | 0 | AND combination of interrupt events |
1 | 1 | 6-direction position recognition |
Variants
OrCombination
Movement
AndCombination
Position
Trait Implementations
sourceimpl Clone for InterruptMode
impl Clone for InterruptMode
sourcefn clone(&self) -> InterruptMode
fn clone(&self) -> InterruptMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InterruptMode
impl Debug for InterruptMode
sourceimpl Default for InterruptMode
impl Default for InterruptMode
sourceimpl From<u8> for InterruptMode
impl From<u8> for InterruptMode
impl Copy for InterruptMode
Auto Trait Implementations
impl RefUnwindSafe for InterruptMode
impl Send for InterruptMode
impl Sync for InterruptMode
impl Unpin for InterruptMode
impl UnwindSafe for InterruptMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more