Enum stm32_metapac::opamp::vals::PgaGain
#[repr(u8)]pub enum PgaGain {
GAIN2 = 0,
GAIN4 = 1,
GAIN8 = 2,
GAIN16 = 3,
}
Variants§
GAIN2 = 0
internal PGA Gain 2.
GAIN4 = 1
internal PGA Gain 4.
GAIN8 = 2
internal PGA Gain 8.
GAIN16 = 3
internal PGA Gain 16.
Implementations§
Trait Implementations§
§impl Ord for PgaGain
impl Ord for PgaGain
§impl PartialOrd for PgaGain
impl PartialOrd for PgaGain
§fn partial_cmp(&self, other: &PgaGain) -> Option<Ordering>
fn partial_cmp(&self, other: &PgaGain) -> Option<Ordering>
1.0.0 · source§fn 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 PgaGain
impl Eq for PgaGain
impl StructuralEq for PgaGain
impl StructuralPartialEq for PgaGain
Auto Trait Implementations§
impl RefUnwindSafe for PgaGain
impl Send for PgaGain
impl Sync for PgaGain
impl Unpin for PgaGain
impl UnwindSafe for PgaGain
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