#[non_exhaustive]pub enum I2cAddress {
SevenBit(u8),
}
Expand description
Representation of I2C address.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SevenBit(u8)
7-bit address mode type.
Note that 7-bit addresses defined by drivers should be specified in
right-aligned form, e.g. in the range 0x00..=0x7F
.
For example, a device that has the seven bit address of 0b011_0010
,
and therefore is addressed on the wire using:
0b0110010_0
or0x64
for writes0b0110010_1
or0x65
for reads
Trait Implementations§
Source§impl Clone for I2cAddress
impl Clone for I2cAddress
Source§fn clone(&self) -> I2cAddress
fn clone(&self) -> I2cAddress
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for I2cAddress
impl Debug for I2cAddress
Source§impl Format for I2cAddress
impl Format for I2cAddress
Source§impl From<u8> for I2cAddress
impl From<u8> for I2cAddress
Source§impl Hash for I2cAddress
impl Hash for I2cAddress
Source§impl PartialEq for I2cAddress
impl PartialEq for I2cAddress
impl Copy for I2cAddress
impl Eq for I2cAddress
impl StructuralPartialEq for I2cAddress
Auto Trait Implementations§
impl Freeze for I2cAddress
impl RefUnwindSafe for I2cAddress
impl Send for I2cAddress
impl Sync for I2cAddress
impl Unpin for I2cAddress
impl UnwindSafe for I2cAddress
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§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, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)