pub struct FleaProbe { /* private fields */ }Implementations§
Source§impl FleaProbe
impl FleaProbe
pub fn read_calibration_from_flash(&mut self, serial: &mut IdleFleaTerminal)
Sourcepub fn set_calibration(&mut self, offset_0: f64, offset_3v3: f64)
pub fn set_calibration(&mut self, offset_0: f64, offset_3v3: f64)
Set calibration values manually
Sourcepub fn write_calibration_to_flash(
&self,
scope: &mut IdleFleaScope,
) -> Result<(), CalibrationError>
pub fn write_calibration_to_flash( &self, scope: &mut IdleFleaScope, ) -> Result<(), CalibrationError>
Write calibration values to flash
pub fn apply_calibration(&self, df: LazyFrame) -> LazyFrame
Sourcepub fn read_stable_value_for_calibration(
&self,
scope: &mut IdleFleaScope,
) -> Result<f64, CalibrationError>
pub fn read_stable_value_for_calibration( &self, scope: &mut IdleFleaScope, ) -> Result<f64, CalibrationError>
Read a stable value for calibration purposes
Sourcepub fn raw_to_voltage(&self, raw_value: Expr) -> Expr
pub fn raw_to_voltage(&self, raw_value: Expr) -> Expr
Convert raw ADC value to voltage
Sourcepub fn voltage_to_raw(&self, voltage: f64) -> f64
pub fn voltage_to_raw(&self, voltage: f64) -> f64
Convert voltage to raw ADC value
Sourcepub fn calibrate_0(
&mut self,
scope: &mut IdleFleaScope,
) -> Result<f64, CalibrationError>
pub fn calibrate_0( &mut self, scope: &mut IdleFleaScope, ) -> Result<f64, CalibrationError>
Calibrate for 0V
Sourcepub fn calibrate_3v3(
&mut self,
scope: &mut IdleFleaScope,
) -> Result<f64, CalibrationError>
pub fn calibrate_3v3( &mut self, scope: &mut IdleFleaScope, ) -> Result<f64, CalibrationError>
Calibrate for 3.3V
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FleaProbe
impl RefUnwindSafe for FleaProbe
impl Send for FleaProbe
impl Sync for FleaProbe
impl Unpin for FleaProbe
impl UnwindSafe for FleaProbe
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more