[][src]Struct kxcj9::WakeUpInterruptConfig

pub struct WakeUpInterruptConfig {
    pub trigger_motion: WakeUpTriggerMotion,
    pub data_rate: WakeUpOutputDataRate,
    pub fault_count: u8,
    pub threshold: f32,
}

Wake-up interrupt configuration

Fields

trigger_motion: WakeUpTriggerMotion

Motion that triggers the wake-up interrupt.

data_rate: WakeUpOutputDataRate

Data rate used for checking on the wake-up motion.

fault_count: u8

Number of faults necessary to trigger a wake-up interrupt.

Each count accounts for a delay of 1/data_rate. The minimum value is 1. Configuring with fault_count = 0 will return an Error::InvalidSetting.

threshold: f32

Wake-up acceleration change threshold in G.

This will be scaled internally and has a maximum of 8g for the KXCJ9-1008 and KCXJB devices and 16g for the KXCJ9-1018 device. This value must be positive and the comparison is done for each axis separately (including negative axes)

Trait Implementations

impl Copy for WakeUpInterruptConfig[src]

impl Debug for WakeUpInterruptConfig[src]

impl Clone for WakeUpInterruptConfig[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for WakeUpInterruptConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]