Enum stm32_metapac::i2c::vals::Oamsk
#[repr(u8)]pub enum Oamsk {
NOMASK = 0,
MASK1 = 1,
MASK2 = 2,
MASK3 = 3,
MASK4 = 4,
MASK5 = 5,
MASK6 = 6,
MASK7 = 7,
}
Variants§
NOMASK = 0
No mask
MASK1 = 1
OA2[1] is masked and don’t care. Only OA2[7:2] are compared
MASK2 = 2
OA2[2:1] are masked and don’t care. Only OA2[7:3] are compared
MASK3 = 3
OA2[3:1] are masked and don’t care. Only OA2[7:4] are compared
MASK4 = 4
OA2[4:1] are masked and don’t care. Only OA2[7:5] are compared
MASK5 = 5
OA2[5:1] are masked and don’t care. Only OA2[7:6] are compared
MASK6 = 6
OA2[6:1] are masked and don’t care. Only OA2[7] is compared.
MASK7 = 7
OA2[7:1] are masked and don’t care. No comparison is done, and all (except reserved) 7-bit received addresses are acknowledged
Implementations§
Trait Implementations§
§impl Ord for Oamsk
impl Ord for Oamsk
§impl PartialOrd for Oamsk
impl PartialOrd for Oamsk
§fn partial_cmp(&self, other: &Oamsk) -> Option<Ordering>
fn partial_cmp(&self, other: &Oamsk) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Oamsk
impl Eq for Oamsk
impl StructuralEq for Oamsk
impl StructuralPartialEq for Oamsk
Auto Trait Implementations§
impl RefUnwindSafe for Oamsk
impl Send for Oamsk
impl Sync for Oamsk
impl Unpin for Oamsk
impl UnwindSafe for Oamsk
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