Struct mma8x5x::WakeInterrupts
source · [−]pub struct WakeInterrupts {
pub transient: bool,
pub portrait_landscape: bool,
pub pulse: bool,
pub freefall_motion: bool,
}
Expand description
Interrupts that wake the device from sleep
Fields
transient: bool
Acceleration transient interrupt
portrait_landscape: bool
Portrait/landscape orientation interrupt
pulse: bool
Single and/or double pulse detection interrupt
freefall_motion: bool
Freefall/motion interrupt
Trait Implementations
sourceimpl Clone for WakeInterrupts
impl Clone for WakeInterrupts
sourcefn clone(&self) -> WakeInterrupts
fn clone(&self) -> WakeInterrupts
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WakeInterrupts
impl Debug for WakeInterrupts
sourceimpl Default for WakeInterrupts
impl Default for WakeInterrupts
sourcefn default() -> WakeInterrupts
fn default() -> WakeInterrupts
Returns the “default value” for a type. Read more
sourceimpl PartialEq<WakeInterrupts> for WakeInterrupts
impl PartialEq<WakeInterrupts> for WakeInterrupts
sourcefn eq(&self, other: &WakeInterrupts) -> bool
fn eq(&self, other: &WakeInterrupts) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for WakeInterrupts
impl Eq for WakeInterrupts
impl StructuralEq for WakeInterrupts
impl StructuralPartialEq for WakeInterrupts
Auto Trait Implementations
impl RefUnwindSafe for WakeInterrupts
impl Send for WakeInterrupts
impl Sync for WakeInterrupts
impl Unpin for WakeInterrupts
impl UnwindSafe for WakeInterrupts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more