pub trait AdcExt {
// Required method
fn constrain(self, rcu: &mut Rcu) -> Adc;
}Expand description
Entry point on the raw peripheral.
Required Methods§
Sourcefn constrain(self, rcu: &mut Rcu) -> Adc
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".