Enum esp32c2_hal::analog::adc::Attenuation
source · pub enum Attenuation {
Attenuation0dB = 0,
Attenuation11dB = 3,
}
Expand description
The attenuation of the ADC pin
Variants§
Attenuation0dB = 0
0 dB attenuation, measurement range: 0 - 800 mV
Attenuation11dB = 3
11 dB attenuation, measurement range: 0 - 2600 mV
Implementations§
source§impl Attenuation
impl Attenuation
sourcepub const ALL: &'static [Attenuation] = _
pub const ALL: &'static [Attenuation] = _
List of all supported attenuations
Trait Implementations§
source§impl Clone for Attenuation
impl Clone for Attenuation
source§fn clone(&self) -> Attenuation
fn clone(&self) -> Attenuation
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 PartialEq for Attenuation
impl PartialEq for Attenuation
source§fn eq(&self, other: &Attenuation) -> bool
fn eq(&self, other: &Attenuation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Attenuation
impl Eq for Attenuation
impl StructuralEq for Attenuation
impl StructuralPartialEq for Attenuation
Auto Trait Implementations§
impl RefUnwindSafe for Attenuation
impl Send for Attenuation
impl Sync for Attenuation
impl Unpin for Attenuation
impl UnwindSafe for Attenuation
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