pub trait AdcCalScheme<ADCI>: Sized + Sealed {
    // Required method
    fn new_cal(atten: Attenuation) -> Self;
    // Provided methods
    fn adc_cal(&self) -> u16 { ... }
    fn adc_val(&self, val: u16) -> u16 { ... }
}Expand description
A trait abstracting over calibration methods.
The methods in this trait are mostly for internal use. To get
calibrated ADC reads, all you need to do is call enable_pin_with_cal
and specify some implementor of this trait.
Required Methods§
Sourcefn new_cal(atten: Attenuation) -> Self
 
fn new_cal(atten: Attenuation) -> Self
Create a new calibration scheme for the given attenuation.
Provided Methods§
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.
Implementations on Foreign Types§
Source§impl<ADCI> AdcCalScheme<ADCI> for ()
Available on crate feature unstable only. 
impl<ADCI> AdcCalScheme<ADCI> for ()
Available on crate feature 
unstable only.fn new_cal(_atten: Attenuation) -> Self
Implementors§
impl<ADCI> AdcCalScheme<ADCI> for AdcCalBasic<ADCI>where
    ADCI: AdcCalEfuse + CalibrationAccess,
Available on crate feature 
unstable only.impl<ADCI> AdcCalScheme<ADCI> for AdcCalCurve<ADCI>where
    ADCI: AdcCalEfuse + AdcHasLineCal + AdcHasCurveCal + CalibrationAccess,
Available on crate feature 
unstable only.impl<ADCI> AdcCalScheme<ADCI> for AdcCalLine<ADCI>where
    ADCI: AdcCalEfuse + AdcHasLineCal + CalibrationAccess,
Available on crate feature 
unstable only.