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