[][src]Struct anyleaf::PhSensor

pub struct PhSensor<I2C: Read<Error = E> + Write<Error = E> + WriteRead<Error = E>, E> {
    pub adc: Ads1x1x<I2cInterface<I2C>, Ads1115, Resolution16Bit, OneShot>,
    pub smoothing: Smoothing,
    // some fields omitted
}

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

impl<I2C, E> Sync for PhSensor<I2C, E> where
    I2C: Sync

impl<I2C, E> Unpin for PhSensor<I2C, E> where
    I2C: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.