[−][src]Trait libmedium::sensors::PwmSensor
Helper trait that sums up all functionality of a read-only pwm sensor.
Provided methods
pub fn read_pwm(&self) -> Result<Pwm, Error>
[src]
Reads the pwm subfunction of this pwm sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_enable(&self) -> Result<PwmEnable, Error>
[src]
Reads the enable subfunction of this pwm sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_mode(&self) -> Result<PwmMode, Error>
[src]
Reads the mode subfunction of this pwm sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_frequency(&self) -> Result<Frequency, Error>
[src]
Reads the freq subfunction of this pwm sensor. Returns an error, if this sensor doesn't support the subfunction.