[][src]Struct esp32_hal::analog::config::Adc2Config

pub struct Adc2Config {
    pub resolution: Resolution,
    pub attenuations: [Option<Attenuation>; 10],
}

Fields

resolution: Resolutionattenuations: [Option<Attenuation>; 10]

Implementations

impl Adc2Config[src]

pub fn new() -> Adc2Config[src]

pub fn enable_pin<PIN: Channel<ADC2, ID = u8>>(
    &mut self,
    _pin: &PIN,
    attenuation: Attenuation
)
[src]

Auto Trait Implementations

impl Send for Adc2Config

impl Sync for Adc2Config

impl Unpin for Adc2Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.