[][src]Struct stm32l1xx_hal::adc::Adc

pub struct Adc { /* fields omitted */ }

Analog to Digital converter interface

Methods

impl Adc[src]

pub fn new(adc: ADC, rcc: &mut Rcc) -> Self[src]

pub fn set_sample_time(&mut self, t_samp: SampleTime)[src]

Set the Adc sampling time

pub fn set_align(&mut self, align: Align)[src]

Set the Adc result alignment

pub fn set_precision(&mut self, precision: Precision)[src]

Set the Adc precision

Trait Implementations

impl Channel<Adc> for PA0<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PA1<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PA2<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PA3<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PA4<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PA5<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PA6<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PA7<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PB0<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PB1<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PC0<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PC1<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PC2<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PC3<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PC4<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PC5<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PB12<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PB13<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PB14<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PB15<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PE7<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PE8<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PE9<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PE10<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PF6<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PF7<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PF8<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PF9<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PF10<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PB2<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PF11<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PF12<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PF13<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PF14<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PF15<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PG0<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PG1<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PG2<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PG3<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for PG4<Analog>[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for VTemp[src]

type ID = u8

Channel ID type Read more

impl Channel<Adc> for VRef[src]

type ID = u8

Channel ID type Read more

impl<WORD, PIN> OneShot<Adc, WORD, PIN> for Adc where
    WORD: From<u16>,
    PIN: AdcChannel + Channel<Adc, ID = u8>, 
[src]

type Error = ()

Error type returned by ADC methods

Auto Trait Implementations

impl Unpin for Adc

impl Send for Adc

impl !Sync for Adc

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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