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§
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§fn default() -> InterruptMode
fn default() -> InterruptMode
Returns the “default value” for a type. Read more
source§impl 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§
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