pub enum SlaveAddr {
Default,
Alternative(bool, bool, bool),
}Expand description
Possible slave addresses
Variants§
Default
Default slave address
Alternative(bool, bool, bool)
Alternative slave address providing bit values for A2, A1 and A0
Some of these combinations require connecting the ADDR0 pin to SCL or SDA. Check table 1 on page 7 of the datasheet: [TMP006/B].
Trait Implementations§
impl Copy for SlaveAddr
impl Eq for SlaveAddr
impl StructuralPartialEq for SlaveAddr
Auto Trait Implementations§
impl Freeze for SlaveAddr
impl RefUnwindSafe for SlaveAddr
impl Send for SlaveAddr
impl Sync for SlaveAddr
impl Unpin for SlaveAddr
impl UnwindSafe for SlaveAddr
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