#[repr(u8)]pub enum Mpr121Address {
Default = 90,
Vdd = 91,
Sda = 92,
Scl = 93,
}Expand description
The four values the sensor can be addressed as. Note that the address of the device is determined by
where the ADDR pin is connected to. Default is used if no connection, or a connection to VSS is made.
Have a look at page 4 “serial communication” for further specification.
Variants§
Trait Implementations§
Source§impl Clone for Mpr121Address
impl Clone for Mpr121Address
Source§fn clone(&self) -> Mpr121Address
fn clone(&self) -> Mpr121Address
Returns a duplicate 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 Mpr121Address
impl Debug for Mpr121Address
Source§impl From<Mpr121Address> for u8
impl From<Mpr121Address> for u8
Source§fn from(enum_value: Mpr121Address) -> Self
fn from(enum_value: Mpr121Address) -> Self
Converts to this type from the input type.
Source§impl Ord for Mpr121Address
impl Ord for Mpr121Address
Source§fn cmp(&self, other: &Mpr121Address) -> Ordering
fn cmp(&self, other: &Mpr121Address) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Mpr121Address
impl PartialEq for Mpr121Address
Source§impl PartialOrd for Mpr121Address
impl PartialOrd for Mpr121Address
impl Copy for Mpr121Address
impl Eq for Mpr121Address
impl StructuralPartialEq for Mpr121Address
Auto Trait Implementations§
impl Freeze for Mpr121Address
impl RefUnwindSafe for Mpr121Address
impl Send for Mpr121Address
impl Sync for Mpr121Address
impl Unpin for Mpr121Address
impl UnwindSafe for Mpr121Address
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