pub struct Status {
pub fifo_threshold: bool,
pub wake_up_event: bool,
pub sleep_event: bool,
pub double_tap_event: bool,
pub single_tap_event: bool,
pub position_change_event: bool,
pub free_fall_event: bool,
pub data_ready: bool,
}Expand description
Struct representation of the Status register
Fields§
§fifo_threshold: boolFIFO threshold status
false: FIFO filling is lower than the threshold level
true: FIFO filling is equal or higher than the threshold level
wake_up_event: boolWake up event detection
false: no wake-up event detected
true: wake-up event detected
sleep_event: boolSleep event status
false: no sleep event detected
true: sleep event detected
double_tap_event: boolDouble-tap event status
false: no tap event detected
true: tap event detected
single_tap_event: boolSingle-tap event status
false: no tap event detected
true: tap event detected
position_change_event: boolSource of change in position (portrait/landscape/face-up/face-down)
false: no change in position detected
true: change in position detected
free_fall_event: boolFree-fall event detection status
false: no free-fall event detected
true: free-fall event detected
data_ready: boolData ready status
false: no data is available
true: X-, Y- and Z-axis new data available
Trait Implementations§
impl Copy for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)