pub struct Adc<ADC> { /* fields omitted */ }
Expand description
Adc
encapsulates the device ADC
Implementations
pub fn adc0(
adc: ADC0,
mclk: &mut MCLK,
clocks: &mut GenericClockController,
gclk: GEN_A
) -> Adc<ADC0>
Set the sample rate
Set the prescaler for adjusting the clock relative to the system clock
Set the input resolution
pub fn adc1(
adc: ADC1,
mclk: &mut MCLK,
clocks: &mut GenericClockController,
gclk: GEN_A
) -> Adc<ADC1>
Set the sample rate
Set the prescaler for adjusting the clock relative to the system clock
Set the input resolution
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<ADC> RefUnwindSafe for Adc<ADC> where
ADC: RefUnwindSafe,
impl<ADC> UnwindSafe for Adc<ADC> where
ADC: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.