pub enum Attenuation {
    _0dB = 0,
    _2p5dB = 1,
    _6dB = 2,
    _11dB = 3,
}Expand description
The approximate attenuation of the ADC pin.
The effective measurement range for a given attenuation is dependent on the device being targeted. Please refer to “ADC Characteristics” section of your device’s datasheet for more information.
Variants§
_0dB = 0
About 0dB attenuation.
_2p5dB = 1
About 2.5dB attenuation.
_6dB = 2
About 6dB attenuation.
_11dB = 3
About 11dB attenuation.
Trait Implementations§
Source§impl Clone for Attenuation
Available on crate feature unstable only. 
impl Clone for Attenuation
Available on crate feature 
unstable only.Source§fn clone(&self) -> Attenuation
 
fn clone(&self) -> Attenuation
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for Attenuation
Available on crate feature unstable only. 
impl Debug for Attenuation
Available on crate feature 
unstable only.Source§impl Hash for Attenuation
Available on crate feature unstable only. 
impl Hash for Attenuation
Available on crate feature 
unstable only.Source§impl PartialEq for Attenuation
Available on crate feature unstable only. 
impl PartialEq for Attenuation
Available on crate feature 
unstable only.impl Copy for Attenuation
Available on crate feature 
unstable only.impl Eq for Attenuation
Available on crate feature 
unstable only.impl StructuralPartialEq for Attenuation
Available on crate feature 
unstable only.Auto Trait Implementations§
impl Freeze for Attenuation
impl RefUnwindSafe for Attenuation
impl Send for Attenuation
impl Sync for Attenuation
impl Unpin for Attenuation
impl UnwindSafe for Attenuation
Blanket Implementations§
§impl<T> Any for Twhere
    T: 'static + ?Sized,
 
impl<T> Any for Twhere
    T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
    T: ?Sized,
 
impl<T> Borrow<T> for Twhere
    T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
 
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)