pub enum SlaveAddr {
Default,
Alternative(bool, bool, bool),
}
Expand description
Possible slave addresses
Note that in some devices some of the address bits are used for memory addressing and will therefore be ignored.
Variants§
Default
Default slave address
Alternative(bool, bool, bool)
Alternative slave address providing bit values for A2, A1 and A0
Depending on the device, some of the device address bits may be used for memory addresses. In this case, the value provided here for these bits will be ignored. Consult the device addressing in your device datasheet.
e.g. For the 24xM01 devices use the A0 bit of the device address as the highest memory address bit. The value provided here will be ignored.
Trait Implementations§
source§impl PartialEq for SlaveAddr
impl PartialEq for SlaveAddr
impl Copy 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