lis2dtw12

Struct AllInterruptSources

source
pub struct AllInterruptSources {
    pub sleep_change_interrupt: bool,
    pub six_d_interrupt: bool,
    pub double_tap_interrupt: bool,
    pub single_tap_interrupt: bool,
    pub wake_up_interrupt: bool,
    pub free_fall_interrupt: bool,
}
Expand description

Struct representation of the All Interrupt Sources register

This register is a combination of all interrupt sources

Fields§

§sleep_change_interrupt: bool

Sleep change interrupt

false: no sleep change interrupt

true: sleep change interrupt

§six_d_interrupt: bool

6D interrupt

false: no 6D interrupt

true: 6D interrupt

§double_tap_interrupt: bool

Double-tap interrupt

false: no double-tap interrupt

true: double-tap interrupt

§single_tap_interrupt: bool

Single-tap interrupt

false: no single-tap interrupt

true: single-tap interrupt

§wake_up_interrupt: bool

Wake-up interrupt

false: no wake-up interrupt

true: wake-up interrupt

§free_fall_interrupt: bool

Free-fall interrupt

false: no free-fall interrupt

true: free-fall interrupt

Trait Implementations§

source§

impl From<u8> for AllInterruptSources

source§

fn from(value: u8) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.