[][src]Trait libmedium::sensors::TempSensor

pub trait TempSensor: SensorBase {
    fn read_type(&self) -> Result<TempType, Error> { ... }
fn read_offset(&self) -> Result<Temperature, Error> { ... }
fn read_max_hyst(&self) -> Result<Temperature, Error> { ... }
fn read_min_hyst(&self) -> Result<Temperature, Error> { ... }
fn read_crit_hyst(&self) -> Result<Temperature, Error> { ... }
fn read_emergency(&self) -> Result<Temperature, Error> { ... }
fn read_emergency_hyst(&self) -> Result<Temperature, Error> { ... }
fn read_lcrit_hyst(&self) -> Result<Temperature, Error> { ... }
fn write_offset(&self, offset: Temperature) -> Result<(), Error>
    where
        Self: WritableSensorBase
, { ... }
fn write_max_hyst(&self, max_hyst: Temperature) -> Result<(), Error>
    where
        Self: WritableSensorBase
, { ... }
fn write_min_hyst(&self, min_hyst: Temperature) -> Result<(), Error>
    where
        Self: WritableSensorBase
, { ... }
fn write_crit_hyst(&self, crit_hyst: Temperature) -> Result<(), Error>
    where
        Self: WritableSensorBase
, { ... }
fn write_emergency(&self, emergency: Temperature) -> Result<(), Error>
    where
        Self: WritableSensorBase
, { ... }
fn write_emergency_hyst(
        &self,
        emergency_hyst: Temperature
    ) -> Result<(), Error>
    where
        Self: WritableSensorBase
, { ... }
fn write_lcrit_hyst(&self, lcrit_hyst: Temperature) -> Result<(), Error>
    where
        Self: WritableSensorBase
, { ... } }

Trait implemented by all temp sensors.

Provided methods

fn read_type(&self) -> Result<TempType, Error>

Reads the type subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

fn read_offset(&self) -> Result<Temperature, Error>

Reads the offset subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

fn read_max_hyst(&self) -> Result<Temperature, Error>

Reads the max_hyst subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

fn read_min_hyst(&self) -> Result<Temperature, Error>

Reads the min_hyst subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

fn read_crit_hyst(&self) -> Result<Temperature, Error>

Reads the crit_hyst subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

fn read_emergency(&self) -> Result<Temperature, Error>

Reads the emergency subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

fn read_emergency_hyst(&self) -> Result<Temperature, Error>

Reads the emergency_hyst subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

fn read_lcrit_hyst(&self) -> Result<Temperature, Error>

Reads the lcrit_hyst subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

fn write_offset(&self, offset: Temperature) -> Result<(), Error> where
    Self: WritableSensorBase

Converts offset and writes it to this temp's offset subfunction. Returns an error, if this sensor doesn't support the subfunction.

fn write_max_hyst(&self, max_hyst: Temperature) -> Result<(), Error> where
    Self: WritableSensorBase

Converts max_hyst and writes it to this temp's max_hyst subfunction. Returns an error, if this sensor doesn't support the subfunction.

fn write_min_hyst(&self, min_hyst: Temperature) -> Result<(), Error> where
    Self: WritableSensorBase

Converts min_hyst and writes it to this temp's min_hyst subfunction. Returns an error, if this sensor doesn't support the subfunction.

fn write_crit_hyst(&self, crit_hyst: Temperature) -> Result<(), Error> where
    Self: WritableSensorBase

Converts crit_hyst and writes it to this temp's crit_hyst subfunction. Returns an error, if this sensor doesn't support the subfunction.

fn write_emergency(&self, emergency: Temperature) -> Result<(), Error> where
    Self: WritableSensorBase

Converts emergency and writes it to this temp's emergency subfunction. Returns an error, if this sensor doesn't support the subfunction.

fn write_emergency_hyst(&self, emergency_hyst: Temperature) -> Result<(), Error> where
    Self: WritableSensorBase

Converts emergency_hyst and writes it to this temp's emergency_hyst subfunction. Returns an error, if this sensor doesn't support the subfunction.

fn write_lcrit_hyst(&self, lcrit_hyst: Temperature) -> Result<(), Error> where
    Self: WritableSensorBase

Converts lcrit_hyst and writes it to this temp's lcrit_hyst subfunction. Returns an error, if this sensor doesn't support the subfunction.

Loading content...

Implementors

impl TempSensor for ReadOnlyTemp[src]

impl TempSensor for ReadWriteTemp[src]

Loading content...