kernel::hil::sensors

Trait TemperatureClient

Source
pub trait TemperatureClient {
    // Required method
    fn callback(&self, value: Result<i32, ErrorCode>);
}
Expand description

Client for receiving temperature readings.

Required Methods§

Source

fn callback(&self, value: Result<i32, ErrorCode>)

Called when a temperature reading has completed.

  • value: the most recently read temperature in hundredths of degrees centigrade (centiCelsius), or Err on failure.

Implementors§