Skip to main content

AdcExt

Trait AdcExt 

Source
pub trait AdcExt {
    // Required method
    fn constrain(self, rcu: &mut Rcu) -> Adc;
}
Expand description

Entry point on the raw peripheral.

Required Methods§

Source

fn constrain(self, rcu: &mut Rcu) -> Adc

Enables the peripheral, powers it up and runs the calibration sequence.

Blocks until calibration completes.

§Panics

If the ADC clock was never selected — Clocks::ck_adc is then zero and the calibration delay divides by it. Configure the clock with ClockConfig::adc_sel first.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AdcExt for Adc

Source§

fn constrain(self, rcu: &mut Rcu) -> Adc

Implementors§