Trait kernel::hil::sensors::TemperatureDriver

source ·
pub trait TemperatureDriver<'a> {
    // Required methods
    fn set_client(&self, client: &'a dyn TemperatureClient);
    fn read_temperature(&self) -> Result<(), ErrorCode>;
}
Expand description

A basic interface for a temperature sensor

Required Methods§

Implementors§