pub enum Address {
SevenBit(u8),
TenBit(u16),
}
Expand description
An I2C address. Either 7 or 10 bit.
Variants§
SevenBit(u8)
A 7 bit address
TenBit(u16)
A 10 bit address.
When using an address to configure the Own Address, only the OA1 register can be set to a 10-bit address.
Implementations§
Trait Implementations§
impl Copy for Address
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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