kernel::hil::sensors

Trait HumidityDriver

Source
pub trait HumidityDriver<'a> {
    // Required methods
    fn set_client(&self, client: &'a dyn HumidityClient);
    fn read_humidity(&self) -> Result<(), ErrorCode>;
}
Expand description

A basic interface for a humidity sensor

Required Methods§

Source

fn set_client(&self, client: &'a dyn HumidityClient)

Source

fn read_humidity(&self) -> Result<(), ErrorCode>

Implementors§