Struct mma8x5x::EnabledInterrupts
source · [−]pub struct EnabledInterrupts {
pub auto_sleep: bool,
pub fifo: bool,
pub transient: bool,
pub portrait_landscape: bool,
pub pulse: bool,
pub freefall_motion: bool,
pub data_ready: bool,
}
Expand description
Interrupt source enable/disable
Unavailable interrupt sources on a device are ignored.
Fields
auto_sleep: bool
Auto-sleep/wake interrupt enabled
fifo: bool
FIFO interrupt enabled
transient: bool
Acceleration transient interrupt enabled
portrait_landscape: bool
Portrait/landscape orientation interrupt enabled
pulse: bool
Single and/or double pulse detection interrupt enabled
freefall_motion: bool
Freefall/motion interrupt enabled
data_ready: bool
Data ready interrupt enabled
Trait Implementations
sourceimpl Clone for EnabledInterrupts
impl Clone for EnabledInterrupts
sourcefn clone(&self) -> EnabledInterrupts
fn clone(&self) -> EnabledInterrupts
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 EnabledInterrupts
impl Debug for EnabledInterrupts
sourceimpl Default for EnabledInterrupts
impl Default for EnabledInterrupts
sourcefn default() -> EnabledInterrupts
fn default() -> EnabledInterrupts
Returns the “default value” for a type. Read more
sourceimpl PartialEq<EnabledInterrupts> for EnabledInterrupts
impl PartialEq<EnabledInterrupts> for EnabledInterrupts
sourcefn eq(&self, other: &EnabledInterrupts) -> bool
fn eq(&self, other: &EnabledInterrupts) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for EnabledInterrupts
impl Eq for EnabledInterrupts
impl StructuralEq for EnabledInterrupts
impl StructuralPartialEq for EnabledInterrupts
Auto Trait Implementations
impl RefUnwindSafe for EnabledInterrupts
impl Send for EnabledInterrupts
impl Sync for EnabledInterrupts
impl Unpin for EnabledInterrupts
impl UnwindSafe for EnabledInterrupts
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