Skip to main content

AdcHasLineCal

Trait AdcHasLineCal 

Source
pub trait AdcHasLineCal: Sealed {
    const UNIT: u8;
}
Available on crate feature unstable only.
Expand description

Marker trait for ADC units which support line fitting.

Required Associated Constants§

Source

const UNIT: u8

ADC unit index used by the eFuse calibration tables (0 = ADC1, 1 = ADC2).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl AdcHasLineCal for ADC1<'_>

Source§

const UNIT: u8 = 0

Source§

impl AdcHasLineCal for ADC2<'_>

Source§

const UNIT: u8 = 1