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