[−][src]Struct kxcj9::WakeUpInterruptConfig
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(&self) -> 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
impl Send for WakeUpInterruptConfig
impl Sync for WakeUpInterruptConfig
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,