Enum mpr121_hal::Mpr121Address
source · #[repr(u8)]
pub enum Mpr121Address {
Default,
Vdd,
Sda,
Scl,
}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
Default
Vdd
Sda
Scl
Trait Implementations
sourceimpl Clone for Mpr121Address
impl Clone for Mpr121Address
sourcefn clone(&self) -> Mpr121Address
fn clone(&self) -> Mpr121Address
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Ord for Mpr121Address
impl Ord for Mpr121Address
sourcefn cmp(&self, other: &Mpr121Address) -> Ordering
fn cmp(&self, other: &Mpr121Address) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Mpr121Address> for Mpr121Address
impl PartialEq<Mpr121Address> for Mpr121Address
sourcefn eq(&self, other: &Mpr121Address) -> bool
fn eq(&self, other: &Mpr121Address) -> bool
sourceimpl PartialOrd<Mpr121Address> for Mpr121Address
impl PartialOrd<Mpr121Address> for Mpr121Address
sourcefn partial_cmp(&self, other: &Mpr121Address) -> Option<Ordering>
fn partial_cmp(&self, other: &Mpr121Address) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Mpr121Address
impl Eq for Mpr121Address
impl StructuralEq for Mpr121Address
impl StructuralPartialEq for Mpr121Address
Auto Trait Implementations
impl RefUnwindSafe for Mpr121Address
impl Send for Mpr121Address
impl Sync for Mpr121Address
impl Unpin for Mpr121Address
impl UnwindSafe for Mpr121Address
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more