pub struct Mode1 { /* private fields */ }
Expand description
Device Mode1 register
Implementations§
Source§impl Mode1
impl Mode1
pub const PARITY: Mode1
pub const I2C_ADDR_1: Mode1
pub const I2C_ADDR_0: Mode1
pub const IRQ_EN: Mode1
pub const FAST: Mode1
pub const LOW: Mode1
Sourcepub fn from_bits(bits: u8) -> Option<Mode1>
pub fn from_bits(bits: u8) -> Option<Mode1>
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) -> Mode1
pub const fn from_bits_truncate(bits: u8) -> Mode1
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u8) -> Mode1
pub const unsafe fn from_bits_unchecked(bits: u8) -> Mode1
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: Mode1) -> bool
pub const fn intersects(&self, other: Mode1) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for Mode1
impl BitAndAssign for Mode1
Source§fn bitand_assign(&mut self, other: Mode1)
fn bitand_assign(&mut self, other: Mode1)
Disables all flags disabled in the set.
Source§impl BitOrAssign for Mode1
impl BitOrAssign for Mode1
Source§fn bitor_assign(&mut self, other: Mode1)
fn bitor_assign(&mut self, other: Mode1)
Adds the set of flags.
Source§impl BitXorAssign for Mode1
impl BitXorAssign for Mode1
Source§fn bitxor_assign(&mut self, other: Mode1)
fn bitxor_assign(&mut self, other: Mode1)
Toggles the set of flags.
Source§impl Extend<Mode1> for Mode1
impl Extend<Mode1> for Mode1
Source§fn extend<T: IntoIterator<Item = Mode1>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Mode1>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<Mode1> for Mode1
impl FromIterator<Mode1> for Mode1
Source§impl Ord for Mode1
impl Ord for Mode1
Source§impl PartialOrd for Mode1
impl PartialOrd for Mode1
Source§impl SubAssign for Mode1
impl SubAssign for Mode1
Source§fn sub_assign(&mut self, other: Mode1)
fn sub_assign(&mut self, other: Mode1)
Disables all flags enabled in the set.
impl Copy for Mode1
impl Eq for Mode1
impl StructuralPartialEq for Mode1
Auto Trait Implementations§
impl Freeze for Mode1
impl RefUnwindSafe for Mode1
impl Send for Mode1
impl Sync for Mode1
impl Unpin for Mode1
impl UnwindSafe for Mode1
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
Mutably borrows from an owned value. Read more