Trait kernel::hil::sensors::AirQualityClient

source ·
pub trait AirQualityClient {
    // Required methods
    fn environment_specified(&self, result: Result<(), ErrorCode>);
    fn co2_data_available(&self, value: Result<u32, ErrorCode>);
    fn tvoc_data_available(&self, value: Result<u32, ErrorCode>);
}
Expand description

Client for receiving Air Quality readings

Required Methods§

source

fn environment_specified(&self, result: Result<(), ErrorCode>)

Called when the environment specify command has completed.

source

fn co2_data_available(&self, value: Result<u32, ErrorCode>)

Called when a CO2 or equivalent CO2 (eCO2) reading has completed.

  • value: will contain the latest CO2 reading in ppm. An example value might be 400.
source

fn tvoc_data_available(&self, value: Result<u32, ErrorCode>)

Called when a Total Organic Compound (TVOC) reading has completed.

  • value: will contain the latest TVOC reading in ppb. An example value might be 0.

Implementors§