Trait AdcHasCurveCal

Source
pub trait AdcHasCurveCal {
    const CURVES_COEFFS: &'static [CurveCoeffs];
}
Available on crate feature unstable only.
Expand description

Marker trait for ADC which support curve fitting

See also AdcCalCurve.

Required Associated Constants§

Source

const CURVES_COEFFS: &'static [CurveCoeffs]

Coefficients for calculating the reading voltage error.

A sets of coefficients for each attenuation.

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 AdcHasCurveCal for ADC1

Source§

const CURVES_COEFFS: &'static [CurveCoeffs] = CURVES_COEFFS1