#[repr(u8)]pub enum SUB_ADDRESS_LENGTH_A {
ONE = 0,
TWO = 1,
THREE = 2,
FOUR = 3,
}
Expand description
Byte count for I2C sub-address
Value on reset: 0
Variants§
ONE = 0
0: Sub-addresses include 1 byte
TWO = 1
1: Sub-addresses include 2 bytes
THREE = 2
2: Sub-addresses include 3 bytes
FOUR = 3
3: Sub-addresses include 4 bytes
Trait Implementations§
Source§impl Clone for SUB_ADDRESS_LENGTH_A
impl Clone for SUB_ADDRESS_LENGTH_A
Source§fn clone(&self) -> SUB_ADDRESS_LENGTH_A
fn clone(&self) -> SUB_ADDRESS_LENGTH_A
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SUB_ADDRESS_LENGTH_A
impl Debug for SUB_ADDRESS_LENGTH_A
Source§impl From<SUB_ADDRESS_LENGTH_A> for u8
impl From<SUB_ADDRESS_LENGTH_A> for u8
Source§fn from(variant: SUB_ADDRESS_LENGTH_A) -> Self
fn from(variant: SUB_ADDRESS_LENGTH_A) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SUB_ADDRESS_LENGTH_A
impl PartialEq for SUB_ADDRESS_LENGTH_A
impl Copy for SUB_ADDRESS_LENGTH_A
impl Eq for SUB_ADDRESS_LENGTH_A
impl StructuralPartialEq for SUB_ADDRESS_LENGTH_A
Auto Trait Implementations§
impl Freeze for SUB_ADDRESS_LENGTH_A
impl RefUnwindSafe for SUB_ADDRESS_LENGTH_A
impl Send for SUB_ADDRESS_LENGTH_A
impl Sync for SUB_ADDRESS_LENGTH_A
impl Unpin for SUB_ADDRESS_LENGTH_A
impl UnwindSafe for SUB_ADDRESS_LENGTH_A
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