#[repr(u8)]pub enum AddrMask {
NOMASK = 0,
MASK1 = 1,
MASK2 = 2,
MASK3 = 3,
MASK4 = 4,
MASK5 = 5,
MASK6 = 6,
MASK7 = 7,
}Expand description
Bits of the I2C OA2 register to mask out.
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:6] are 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
Trait Implementations§
impl Copy for AddrMask
Auto Trait Implementations§
impl Freeze for AddrMask
impl RefUnwindSafe for AddrMask
impl Send for AddrMask
impl Sync for AddrMask
impl Unpin for AddrMask
impl UnwindSafe for AddrMask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToMutAligned for Twhere
T: ?Sized,
impl<T> ToMutAligned for Twhere
T: ?Sized,
Source§fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
Create a type-checked aligned value from a value that is aligned.