pub struct MotionDetctionConfiguration {
pub datarate: MotionDetectionDataRate,
pub latch_mode: MotionDetectionLatchMode,
pub non_activity_counter: u8,
pub wakeup_counter: u8,
pub wakeup_threshold: u8,
pub interrupt_pin: Option<InterruptPinConfiguration>,
pub enable_x_negative: bool,
pub enable_x_positive: bool,
pub enable_y_negative: bool,
pub enable_y_positive: bool,
pub enable_z_negative: bool,
pub enable_z_positive: bool,
}Expand description
Motion detction configuration options
Fields§
§datarate: MotionDetectionDataRateThe Output Data Rate for the Wake-Up function (motion detection) , default MotionDetectionDataRate::Hz_6_25
latch_mode: MotionDetectionLatchModeThe latche mode of motion interrupt, default MotionDetectionLatchMode::Latched (clears after INT_REL is read)
non_activity_counter: u8The non-activity time required before another wake-up interrupt can be set , default 10 (1.6s)
wakeup_counter: u8The time motion must be present before a wake-up interrupt is set , default 1 (160ms)
wakeup_threshold: u8The threshold for wake-up (motion detect) interrupt is set , default 128 (0.5g)
interrupt_pin: Option<InterruptPinConfiguration>The physical interrupt pin , default None
enable_x_negative: boolThe X- can cause an interrupt or not , default true
enable_x_positive: boolThe X+ can cause an interrupt or not , default true
enable_y_negative: boolThe Y- can cause an interrupt or not , default true
enable_y_positive: boolThe Y+ can cause an interrupt or not , default true
enable_z_negative: boolThe Z- can cause an interrupt or not , default true
enable_z_positive: boolThe Z+ can cause an interrupt or not , default true
Trait Implementations§
Source§impl Clone for MotionDetctionConfiguration
impl Clone for MotionDetctionConfiguration
Source§fn clone(&self) -> MotionDetctionConfiguration
fn clone(&self) -> MotionDetctionConfiguration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more