[][src]Trait libmedium::sensors::Input

pub trait Input: Sensor {
    pub fn read_input(&self) -> Result<Self::Value, Error> { ... }
}

Trait implemented by all sensors except for pwm. It contains the functionality to read the input subfunctions.

Provided methods

pub fn read_input(&self) -> Result<Self::Value, Error>[src]

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

Loading content...

Implementors

Loading content...