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: bool
Assert No‑motion when the X‑axis slope stays below the programmed threshold.
no_motion_y: bool
Assert No‑motion when the Y‑axis slope stays below the programmed threshold.
no_motion_z: bool
Assert No‑motion when the Z‑axis slope stays below the programmed threshold.
any_motion_x: bool
Assert Any‑motion when the X‑axis slope exceeds the programmed threshold.
any_motion_y: bool
Assert Any‑motion when the Y‑axis slope exceeds the programmed threshold.
any_motion_z: bool
Assert Any‑motion when the Z‑axis slope exceeds the programmed threshold.
flat: bool
Face‑up/face‑down detection.
orientation: bool
Portrait/Landscape and face state detection.
step_detector: bool
Step detector (single‑step events).
step_counter: bool
Step counter (accumulated steps).
sig_motion: bool
Significant Motion (activity over a window).
tilt: bool
Tilt detector.
tap_single: bool
Single tap event.
tap_double: bool
Double tap event.
tap_triple: bool
Triple 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