pub struct AdcCalLine<ADCI> { /* private fields */ }Expand description
Line fitting ADC calibration scheme
This scheme implements gain correction based on reference points, and returns readings in mV.
A reference point is a pair of a reference voltage and the corresponding mean raw digital ADC value. Such values are usually stored in efuse bit fields for each supported attenuation.
Also it can be measured in runtime by connecting ADC to reference voltage internally but this method is not so good because actual reference voltage may varies in range 1.0..=1.2 V. Currently this method is used as a fallback (with 1.1 V by default) when calibration data is missing.
This scheme also includes basic calibration (AdcCalBasic).
Trait Implementations§
Source§impl<ADCI> AdcCalScheme<ADCI> for AdcCalLine<ADCI>where
    ADCI: AdcCalEfuse + AdcHasLineCal + 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.Source§impl<ADCI: Clone> Clone for AdcCalLine<ADCI>
Available on crate feature unstable only. 
impl<ADCI: Clone> Clone for AdcCalLine<ADCI>
Available on crate feature 
unstable only.Source§fn clone(&self) -> AdcCalLine<ADCI>
 
fn clone(&self) -> AdcCalLine<ADCI>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreimpl<ADCI: Copy> Copy for AdcCalLine<ADCI>
Available on crate feature 
unstable only.Auto Trait Implementations§
impl<ADCI> Freeze for AdcCalLine<ADCI>
impl<ADCI> RefUnwindSafe for AdcCalLine<ADCI>where
    ADCI: RefUnwindSafe,
impl<ADCI> Send for AdcCalLine<ADCI>where
    ADCI: Send,
impl<ADCI> Sync for AdcCalLine<ADCI>where
    ADCI: Sync,
impl<ADCI> Unpin for AdcCalLine<ADCI>where
    ADCI: Unpin,
impl<ADCI> UnwindSafe for AdcCalLine<ADCI>where
    ADCI: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
    T: 'static + ?Sized,
 
impl<T> Any for Twhere
    T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
    T: ?Sized,
 
impl<T> Borrow<T> for Twhere
    T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
 
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)