Skip to main content

Crate bme68x

Crate bme68x 

Source
Expand description

Platform-independent Bosch BME680/BME688 sensor driver.

This crate is no_std and communicates through embedded-hal 1.0 traits.

Modules§

asynchasync
Asynchronous embedded-hal-async BME680/BME688 driver.
blockingblocking
Blocking embedded-hal BME680/BME688 driver.
compensation
Bosch-compatible fixed-point compensation and timing calculations.
floatfloat
Bosch-compatible single-precision compensation calculations.
interfaceblocking
Bus adapters for embedded-hal 1.0.

Structs§

CalibrationData
Factory calibration coefficients read from the sensor.
Configuration
Temperature, pressure, humidity, filter, and standby configuration.
FixedMeasurement
One fully compensated measurement in Bosch’s exact fixed-point units.
HeaterConfigurationReadback
Complete raw gas-heater control and profile readback.
HeaterRegisters
Raw heater profile registers read back from the sensor.
Measurement
One compensated measurement plus Bosch field and heater metadata.
MeasurementStatus
Bosch-compatible combined status flags attached to a BME68x measurement field.
Measurements
Up to three data fields returned by the BME68x FIFO-style field registers.
ProfileCollector
No-allocation collector for one logical 1–10 step heater-profile scan.
ProfileCounters
Counters that make loss and ambiguity explicit.
ProfileStep
One retained heater step and its host-observed offset from scan start.
RawMeasurement
Raw ADC values extracted from one sensor data field.
SensorConfigurationReadback
Environmental, operating-mode, and gas-heater register readback.

Enums§

ConfigError
A configuration supplied to the sensor was not valid.
Error
Driver error preserving the concrete bus error.
Filter
IIR filter setting.
HeaterConfiguration
Gas-heater settings for one operating mode.
OperationMode
Sensor operating mode.
Oversampling
Temperature, pressure, or humidity oversampling setting.
ProfileCollectorError
Invalid profile-collector construction.
ProfileFinishReason
Why collection of one logical profile ended.
SelfTestFailure
The reason a live sensor self-test failed.
StandbyTime
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 0x00 on memory page 1.
CALIBRATION_DATA_LEN
Number of bytes in the three BME68x calibration register blocks.
MAX_PROFILE_STEPS
Maximum number of heater steps supported by the BME68x register map.

Functions§

calibration_register_fingerprint
Calculate an FNV-1a 64-bit fingerprint over exact calibration bytes.