Struct embassy_stm32::adc::Calibration
source ยท pub struct Calibration { /* private fields */ }
Implementationsยง
sourceยงimpl Calibration
impl Calibration
sourcepub const CALIBRATION_UV: u32 = 3_000_000u32
pub const CALIBRATION_UV: u32 = 3_000_000u32
The millivolts that the calibration value was measured at
sourcepub fn cal_uv(&self, raw: u16, resolution: Resolution) -> u32
pub fn cal_uv(&self, raw: u16, resolution: Resolution) -> u32
Returns a calibrated voltage value as in microvolts (uV)
sourcepub fn cal_f32(&self, raw: u16, resolution: Resolution) -> f32
pub fn cal_f32(&self, raw: u16, resolution: Resolution) -> f32
Returns a calibrated voltage value as an f32
Auto Trait Implementationsยง
impl Freeze for Calibration
impl RefUnwindSafe for Calibration
impl Send for Calibration
impl Sync for Calibration
impl Unpin for Calibration
impl UnwindSafe for Calibration
Blanket Implementationsยง
sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more