Trait kernel::hil::sensors::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§