pub struct EventStatus {
pub fifo_overrun: bool,
pub temperature_data_ready: 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 DUP (Event status) register
Fields§
§fifo_overrun: boolFIFO threshold status
false: FIFO is not completely filled
true: FIFO is overrun
temperature_data_ready: boolTemperature data ready status
false: data not available
true: new set of data is available
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§
source§impl Clone for EventStatus
impl Clone for EventStatus
source§fn clone(&self) -> EventStatus
fn clone(&self) -> EventStatus
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EventStatus
impl Debug for EventStatus
source§impl From<u8> for EventStatus
impl From<u8> for EventStatus
impl Copy for EventStatus
Auto Trait Implementations§
impl Freeze for EventStatus
impl RefUnwindSafe for EventStatus
impl Send for EventStatus
impl Sync for EventStatus
impl Unpin for EventStatus
impl UnwindSafe for EventStatus
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)