[−][src]Crate ccs811_rs
This is a platform agnostic Rust driver for the CCS881 indoor air quality
sensor, based on the embedded-hal blocking i2c
traits.
This driver allows you to:
- Start App mode.
- Read all info available [eCO2, eTVOC, Status, ErrorId, RawData].
- Reset device.
The device
The CCS811 The CCS811 is an ultra-low power digital gas sensor solution which integrates a metal oxide (MOX) gas sensor to detect a wide range of Volatile Organic Compounds (VOCs) for indoor air quality monitoring with a microcontroller unit (MCU), which includes an Analog-to-Digital converter (ADC), and an I²C interface.
Datasheet:
Usage examples (see also examples folder)
To use this driver, import this crate and an embedded-hal
implementation,
then instantiate the device.
Structs
Ccs811 | Ccs811 device driver. |
SensorData | Result |
Enums
AppRegister | Application mode Register addresses Taken from the CCS811 data sheet (Figure 14, p.17) |
BootRegister | Boot mode Register addresses Taken from the CCS811 data sheet (Figure 25, p.26) |
DriveMode | Measurement Mode |
Error | All possible errors in this crate |
ErrorIdCodes | ErrorId Codes |
InterruptDataReady | Interrupt Mode |
InterruptThreshold | Interrupt Mode |