Struct anyleaf::OrpSensor[][src]

pub struct OrpSensor {
    pub addr: u8,
    pub cal: CalPtOrp,
}

Fields

addr: u8cal: CalPtOrp

Implementations

This isn’t intended to be used by the standalone module, but by the water monitor, which connects the ORP sensor to the second ADC, although it still uses differential input A0, A1.

Take an ORP reading.

Useful for getting calibration data

Useful for getting calibration data

Calibrate by measuring voltage at a given ORP. Set the calibration, and return Voltage.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.