Expand description
Platform-independent Bosch BME680/BME688 sensor driver.
This crate is no_std and communicates through embedded-hal 1.0 traits.
Modules§
- asynch
async - Asynchronous
embedded-hal-asyncBME680/BME688 driver. - blocking
blocking - Blocking
embedded-halBME680/BME688 driver. - compensation
- Bosch-compatible fixed-point compensation and timing calculations.
- float
float - Bosch-compatible single-precision compensation calculations.
- interface
blocking - Bus adapters for
embedded-hal1.0.
Structs§
- Calibration
Data - Factory calibration coefficients read from the sensor.
- Configuration
- Temperature, pressure, humidity, filter, and standby configuration.
- Fixed
Measurement - One fully compensated measurement in Bosch’s exact fixed-point units.
- Heater
Configuration Readback - Complete raw gas-heater control and profile readback.
- Heater
Registers - Raw heater profile registers read back from the sensor.
- Measurement
- One compensated measurement plus Bosch field and heater metadata.
- Measurement
Status - Bosch-compatible combined status flags attached to a
BME68xmeasurement field. - Measurements
- Up to three data fields returned by the
BME68xFIFO-style field registers. - Profile
Collector - No-allocation collector for one logical 1–10 step heater-profile scan.
- Profile
Counters - Counters that make loss and ambiguity explicit.
- Profile
Step - One retained heater step and its host-observed offset from scan start.
- RawMeasurement
- Raw ADC values extracted from one sensor data field.
- Sensor
Configuration Readback - Environmental, operating-mode, and gas-heater register readback.
Enums§
- Config
Error - A configuration supplied to the sensor was not valid.
- Error
- Driver error preserving the concrete bus error.
- Filter
- IIR filter setting.
- Heater
Configuration - Gas-heater settings for one operating mode.
- Operation
Mode - Sensor operating mode.
- Oversampling
- Temperature, pressure, or humidity oversampling setting.
- Profile
Collector Error - Invalid profile-collector construction.
- Profile
Finish Reason - Why collection of one logical profile ended.
- Self
Test Failure - The reason a live sensor self-test failed.
- Standby
Time - Standby time used between sequential-mode measurements.
- Variant
- Gas-resistance calculation variant reported by the sensor.
Constants§
- CALIBRATION_
BLOCK_ 1_ LEN - Length of the calibration block starting at register
0x8a. - CALIBRATION_
BLOCK_ 2_ LEN - Length of the calibration block starting at register
0xe1. - CALIBRATION_
BLOCK_ 3_ LEN - Length of the calibration block starting at register
0x00on memory page 1. - CALIBRATION_
DATA_ LEN - Number of bytes in the three
BME68xcalibration register blocks. - MAX_
PROFILE_ STEPS - Maximum number of heater steps supported by the
BME68xregister map.
Functions§
- calibration_
register_ fingerprint - Calculate an FNV-1a 64-bit fingerprint over exact calibration bytes.