Enum lis3dh::InterruptMode
source · pub enum InterruptMode {
OrCombination = 0,
Movement = 64,
AndCombination = 128,
Position = 192,
}
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§
Trait Implementations§
source§impl Clone for InterruptMode
impl Clone for InterruptMode
source§fn clone(&self) -> InterruptMode
fn clone(&self) -> InterruptMode
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 InterruptMode
impl Debug for InterruptMode
source§impl Default for InterruptMode
impl Default for InterruptMode
source§impl From<u8> for InterruptMode
impl From<u8> for InterruptMode
impl Copy for InterruptMode
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