[−][src]Struct anyleaf::PhSensor
Fields
adc: Ads1x1x<I2cInterface<I2C>, Ads1115, Resolution16Bit, OneShot>
smoothing: Smoothing
Implementations
impl<I2C: WriteRead<Error = E> + Write<Error = E> + Read<Error = E>, E> PhSensor<I2C, E>
[src]
pub fn new(i2c: I2C) -> Self
[src]
pub fn read(&mut self) -> Result<f32, Error<E>>
[src]
pub fn calibrate(&mut self, slot: CalSlot, pH: f32) -> Result<(), Error<E>>
[src]
pub fn reset_calibration(&mut self)
[src]
pub fn calibrate_all(&mut self, pt0: CalPt, pt1: CalPt, pt2: Option<CalPt>)
[src]
Auto Trait Implementations
impl<I2C, E> Send for PhSensor<I2C, E> where
I2C: Send,
I2C: Send,
impl<I2C, E> Sync for PhSensor<I2C, E> where
I2C: Sync,
I2C: Sync,
impl<I2C, E> Unpin for PhSensor<I2C, E> where
I2C: Unpin,
I2C: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,