[][src]Struct pygamer::adc::Adc

pub struct Adc<ADC> { /* fields omitted */ }

Implementations

impl Adc<ADC0>[src]

pub fn adc0(
    adc: ADC0,
    mclk: &mut MCLK,
    clocks: &mut GenericClockController,
    gclk: GEN_A
) -> Adc<ADC0>
[src]

pub fn samples(&mut self, samples: SAMPLENUM_A)[src]

pub fn reference(&mut self, reference: REFSEL_A)[src]

impl Adc<ADC1>[src]

pub fn adc1(
    adc: ADC1,
    mclk: &mut MCLK,
    clocks: &mut GenericClockController,
    gclk: GEN_A
) -> Adc<ADC1>
[src]

pub fn samples(&mut self, samples: SAMPLENUM_A)[src]

pub fn reference(&mut self, reference: REFSEL_A)[src]

Trait Implementations

impl<C> From<Adc<ADC0>> for InterruptAdc<ADC0, C> where
    C: ConversionMode<ADC0>, 
[src]

impl<C> From<Adc<ADC1>> for InterruptAdc<ADC1, C> where
    C: ConversionMode<ADC1>, 
[src]

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

type Error = ()

Error type returned by ADC methods

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

type Error = ()

Error type returned by ADC methods

Auto Trait Implementations

impl<ADC> Send for Adc<ADC> where
    ADC: Send
[src]

impl<ADC> Sync for Adc<ADC> where
    ADC: Sync
[src]

impl<ADC> Unpin for Adc<ADC> where
    ADC: Unpin
[src]

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> Same<T> for T

type Output = T

Should always be Self

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.