Struct mpu9250::InterruptEnable
source · pub struct InterruptEnable { /* private fields */ }
Expand description
Enable interrupt for:
Implementations§
source§impl InterruptEnable
impl InterruptEnable
sourcepub const WOM_EN: InterruptEnable = _
pub const WOM_EN: InterruptEnable = _
Wake up on motion
sourcepub const FIFO_OVERFLOW_EN: InterruptEnable = _
pub const FIFO_OVERFLOW_EN: InterruptEnable = _
FIFO overflow
sourcepub const FSYNC_INT_EN: InterruptEnable = _
pub const FSYNC_INT_EN: InterruptEnable = _
fsync
sourcepub const RAW_RDY_EN: InterruptEnable = _
pub const RAW_RDY_EN: InterruptEnable = _
raw sensor data ready
sourcepub const fn empty() -> InterruptEnable
pub const fn empty() -> InterruptEnable
Returns an empty set of flags
sourcepub const fn all() -> InterruptEnable
pub const fn all() -> InterruptEnable
Returns the set containing all flags.
sourcepub fn from_bits(bits: u8) -> Option<InterruptEnable>
pub fn from_bits(bits: u8) -> Option<InterruptEnable>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u8) -> InterruptEnable
pub const fn from_bits_truncate(bits: u8) -> InterruptEnable
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u8) -> InterruptEnable
pub const unsafe fn from_bits_unchecked(bits: u8) -> InterruptEnable
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: InterruptEnable) -> bool
pub const fn intersects(&self, other: InterruptEnable) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: InterruptEnable) -> bool
pub const fn contains(&self, other: InterruptEnable) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: InterruptEnable)
pub fn insert(&mut self, other: InterruptEnable)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: InterruptEnable)
pub fn remove(&mut self, other: InterruptEnable)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: InterruptEnable)
pub fn toggle(&mut self, other: InterruptEnable)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: InterruptEnable, value: bool)
pub fn set(&mut self, other: InterruptEnable, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
source§impl Binary for InterruptEnable
impl Binary for InterruptEnable
source§impl BitAnd<InterruptEnable> for InterruptEnable
impl BitAnd<InterruptEnable> for InterruptEnable
source§fn bitand(self, other: InterruptEnable) -> InterruptEnable
fn bitand(self, other: InterruptEnable) -> InterruptEnable
Returns the intersection between the two sets of flags.
§type Output = InterruptEnable
type Output = InterruptEnable
&
operator.source§impl BitAndAssign<InterruptEnable> for InterruptEnable
impl BitAndAssign<InterruptEnable> for InterruptEnable
source§fn bitand_assign(&mut self, other: InterruptEnable)
fn bitand_assign(&mut self, other: InterruptEnable)
Disables all flags disabled in the set.
source§impl BitOr<InterruptEnable> for InterruptEnable
impl BitOr<InterruptEnable> for InterruptEnable
source§fn bitor(self, other: InterruptEnable) -> InterruptEnable
fn bitor(self, other: InterruptEnable) -> InterruptEnable
Returns the union of the two sets of flags.
§type Output = InterruptEnable
type Output = InterruptEnable
|
operator.source§impl BitOrAssign<InterruptEnable> for InterruptEnable
impl BitOrAssign<InterruptEnable> for InterruptEnable
source§fn bitor_assign(&mut self, other: InterruptEnable)
fn bitor_assign(&mut self, other: InterruptEnable)
Adds the set of flags.
source§impl BitXor<InterruptEnable> for InterruptEnable
impl BitXor<InterruptEnable> for InterruptEnable
source§fn bitxor(self, other: InterruptEnable) -> InterruptEnable
fn bitxor(self, other: InterruptEnable) -> InterruptEnable
Returns the left flags, but with all the right flags toggled.
§type Output = InterruptEnable
type Output = InterruptEnable
^
operator.source§impl BitXorAssign<InterruptEnable> for InterruptEnable
impl BitXorAssign<InterruptEnable> for InterruptEnable
source§fn bitxor_assign(&mut self, other: InterruptEnable)
fn bitxor_assign(&mut self, other: InterruptEnable)
Toggles the set of flags.
source§impl Clone for InterruptEnable
impl Clone for InterruptEnable
source§fn clone(&self) -> InterruptEnable
fn clone(&self) -> InterruptEnable
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InterruptEnable
impl Debug for InterruptEnable
source§impl Extend<InterruptEnable> for InterruptEnable
impl Extend<InterruptEnable> for InterruptEnable
source§fn extend<T: IntoIterator<Item = InterruptEnable>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = InterruptEnable>>(&mut self, iterator: T)
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)source§impl FromIterator<InterruptEnable> for InterruptEnable
impl FromIterator<InterruptEnable> for InterruptEnable
source§fn from_iter<T: IntoIterator<Item = InterruptEnable>>(
iterator: T
) -> InterruptEnable
fn from_iter<T: IntoIterator<Item = InterruptEnable>>( iterator: T ) -> InterruptEnable
source§impl Hash for InterruptEnable
impl Hash for InterruptEnable
source§impl LowerHex for InterruptEnable
impl LowerHex for InterruptEnable
source§impl Not for InterruptEnable
impl Not for InterruptEnable
source§fn not(self) -> InterruptEnable
fn not(self) -> InterruptEnable
Returns the complement of this set of flags.
§type Output = InterruptEnable
type Output = InterruptEnable
!
operator.source§impl Octal for InterruptEnable
impl Octal for InterruptEnable
source§impl Ord for InterruptEnable
impl Ord for InterruptEnable
source§fn cmp(&self, other: &InterruptEnable) -> Ordering
fn cmp(&self, other: &InterruptEnable) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<InterruptEnable> for InterruptEnable
impl PartialEq<InterruptEnable> for InterruptEnable
source§fn eq(&self, other: &InterruptEnable) -> bool
fn eq(&self, other: &InterruptEnable) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<InterruptEnable> for InterruptEnable
impl PartialOrd<InterruptEnable> for InterruptEnable
source§fn partial_cmp(&self, other: &InterruptEnable) -> Option<Ordering>
fn partial_cmp(&self, other: &InterruptEnable) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Sub<InterruptEnable> for InterruptEnable
impl Sub<InterruptEnable> for InterruptEnable
source§fn sub(self, other: InterruptEnable) -> InterruptEnable
fn sub(self, other: InterruptEnable) -> InterruptEnable
Returns the set difference of the two sets of flags.
§type Output = InterruptEnable
type Output = InterruptEnable
-
operator.source§impl SubAssign<InterruptEnable> for InterruptEnable
impl SubAssign<InterruptEnable> for InterruptEnable
source§fn sub_assign(&mut self, other: InterruptEnable)
fn sub_assign(&mut self, other: InterruptEnable)
Disables all flags enabled in the set.