pub struct Features {Show 15 fields
pub no_motion_x: bool,
pub no_motion_y: bool,
pub no_motion_z: bool,
pub any_motion_x: bool,
pub any_motion_y: bool,
pub any_motion_z: bool,
pub flat: bool,
pub orientation: bool,
pub step_detector: bool,
pub step_counter: bool,
pub sig_motion: bool,
pub tilt: bool,
pub tap_single: bool,
pub tap_double: bool,
pub tap_triple: bool,
}Expand description
Bit layout
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
° ╰╯ ╰╯ ╰╯ ╰╯ ╰╯ ╰╯ ╰╯ ╰╯ ╰╯ ╰╯ ╰╯ ╰╯ ╰╯ ╰╯ ╰╯Fields§
§no_motion_x: boolAssert No‑motion when the X‑axis slope stays below the programmed threshold.
no_motion_y: boolAssert No‑motion when the Y‑axis slope stays below the programmed threshold.
no_motion_z: boolAssert No‑motion when the Z‑axis slope stays below the programmed threshold.
any_motion_x: boolAssert Any‑motion when the X‑axis slope exceeds the programmed threshold.
any_motion_y: boolAssert Any‑motion when the Y‑axis slope exceeds the programmed threshold.
any_motion_z: boolAssert Any‑motion when the Z‑axis slope exceeds the programmed threshold.
flat: boolFace‑up/face‑down detection.
orientation: boolPortrait/Landscape and face state detection.
step_detector: boolStep detector (single‑step events).
step_counter: boolStep counter (accumulated steps).
sig_motion: boolSignificant Motion (activity over a window).
tilt: boolTilt detector.
tap_single: boolSingle tap event.
tap_double: boolDouble tap event.
tap_triple: boolTriple tap event.
Implementations§
Trait Implementations§
impl Copy for Features
impl Eq for Features
impl StructuralPartialEq for Features
Auto Trait Implementations§
impl Freeze for Features
impl RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnwindSafe for Features
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