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

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

Fields

resolution: Resolutionhall_sensor: boolattenuations: [Option<Attenuation>; 10]

Implementations

impl Adc1Config[src]

pub fn new() -> Adc1Config[src]

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

pub fn enable_hall_sensor(&mut self)[src]

Auto Trait Implementations

impl Send for Adc1Config

impl Sync for Adc1Config

impl Unpin for Adc1Config

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.