kernel::hil::sensors

Trait 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§