pub enum Address {
Address0,
Address1,
Address2,
Address3,
Broadcast,
}Expand description
I2C address used to address the device.
Variants§
Address0
Devices configured with GND, GND on addr0 and addr1.
Address1
Devices configured with GND, VCC on addr0 and addr1.
Address2
Devices configured with VCC, GND on addr0 and addr1.
Address3
Devices configured with VCC, VCC on addr0 and addr1.
Broadcast
Broadcast address to address all similar devices on the I2C bus.
Is only valid if all devices would respond to the same commands in a similar way. In other words: if all devices are configured identically.
Trait Implementations§
impl Copy 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)