Expand description
§BME680 Environmental Sensor Driver
A type-safe, no_std driver for the Bosch BME680.
This driver uses the typestate pattern to ensure the sensor is correctly
initialized and configured before measurements are taken.
§Units
- Temperature: Centigrade (C * 100)
- Humidity: Milli-percent (RH % * 1000)
- Pressure: Pascal (Pa)
- Gas Resistance: Ohms (Ω)
Modules§
- error
- Error types for the BME680 driver.
Structs§
- Bme680
- The main BME680 driver structure.
- Calc
Temp Data - Intermediate temperature values used for compensation.
- Calib
Data - Factory-fused calibration coefficients read from the sensor. These are unique to every individual chip.
- Celsius
- Temperature wrapper for type-safety. Value is stored in Centigrade (e.g., 2350 = 23.50 °C).
- Config
- Complete sensor configuration used for setup.
- Gas
- Represents gas resistance in Ohms (Ω).
- GasProfile
- Configuration for the gas sensor heating plate.
- Humidity
- Represents relative humidity in milli-percent (percent * 1000).
- Idle
- Measurement
- Compensated measurement result in physical units.
- Milliseconds
- Duration wrapper for type-safety. Stored in milliseconds.
- Oversampling
Config - Grouped oversampling settings for all three environmental sensors.
- Pressure
- Represents atmospheric pressure in Pascal (Pa).
- RawData
- Raw ADC output and status bits read directly from the sensor.
- Ready
- Sensor is initialized, configured, and ready for measurements.
- Temperature
- Represents temperature in Centigrade (degrees Celsius * 100).
- Uninitialized
- Sensor has been created but not yet initialized with calibration data.
Enums§
- GasProfile
Index - Available heating profile slots (0 to 9).
- IIRFilter
- Infinite Impulse Response (IIR) filter coefficient.
- Oversampling
- Oversampling settings for Temperature, Pressure, and Humidity.