[][src]Trait libmedium::sensors::WriteableFanSensor

pub trait WriteableFanSensor: FanSensor + WriteableSensor + WriteableEnable + WriteableMin + WriteableMax {
    pub fn write_target(&self, target: AngularVelocity) -> Result<(), Error> { ... }
pub fn write_div(&self, div: FanDivisor) -> Result<(), Error> { ... } }

Helper trait that sums up all functionality of a read-write fan sensor.

Provided methods

pub fn write_target(&self, target: AngularVelocity) -> Result<(), Error>[src]

Converts target and writes it to this fan's target subfunction.

Only makes sense if the chip supports closed-loop fan speed control based on the measured fan speed. Returns an error, if this sensor doesn't support the subfunction.

pub fn write_div(&self, div: FanDivisor) -> Result<(), Error>[src]

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

Loading content...

Implementors

Loading content...