ConstThe address a BME280 answers on with its SDO pin low.
The address it answers on with SDO high.
How many bytes the humidity calibration block holds.
How many bytes the temperature and pressure calibration block holds.
The value its chip-ID register reads, which tells it from a BMP280.
How many bytes one measurement burst holds.
The IIR filter codes, which smooth pressure and temperature across measurements.
No filtering.
Coefficient 16.
Coefficient 2.
Coefficient 4.
Coefficient 8.
The power mode codes.
One measurement, then back to sleep.
Measurements on a cycle, a standby period apart.
No measurements; the power-on default.
The oversampling codes: how many samples each measurement averages.
The measurement is skipped.
One sample.
Sixteen samples.
Two samples.
Four samples.
Eight samples.
The registers a driver reads and writes.
The first of the 7 humidity calibration bytes.
The first of the 26 temperature and pressure calibration bytes.
The chip-ID register.
The configuration register, config.
The humidity control register, ctrl_hum.
The measurement control register, ctrl_meas.
The first of the 8 data bytes a burst read covers.
The reset register.
The status register.
The word written to the reset register to restart the part.
A BME280 that is not there, for a bus with nothing plugged in.
The status a simulated part reports when it is neither measuring nor loading.
The eight data registers a simulated part holds: one measurement a real part took.
The eight data registers that compensate to a reading against the simulated calibration.
The temperature.
The pressure.
The humidity, as a percentage.
The bytes a burst read would return.
The 26-byte temperature and pressure calibration block a simulated part holds.
The 7-byte humidity calibration block a simulated part holds.
A part that reads what it is asked to, to within what its converter can represent.
The address it answers to.
The temperature it reports.
The pressure it reports.
The humidity it reports, as a percentage.
The part, to put on a simulated bus.
The normal-mode standby codes, by the period each selects.
0.5 ms.
10 ms.
1000 ms.
125 ms.
20 ms.
250 ms.
500 ms.
62.5 ms.
How long the part takes to start after a reset, in microseconds.
Reads the factory calibration out of the registers, once at start-up.
The 26-byte temperature and pressure calibration block.
The 7-byte humidity calibration block.
The calibration, to reuse for every measurement.
Assembles the config register value.
The standby period, filter, and interface settings.
The register value to write.
Parses a config register value.
The register value, as read from the part.
The standby period, filter, and interface settings.
Assembles the ctrl_hum register value, which takes effect only after the next
ctrl_meas write.
The humidity oversampling code.
The register value to write.
Parses a ctrl_hum register value.
The register value, as read from the part.
The humidity oversampling code.
Assembles the ctrl_meas register value.
The oversampling codes and the power mode.
The register value to write.
Parses a ctrl_meas register value.
The register value, as read from the part.
The oversampling codes and the power mode.
Returns the IIR coefficient a filter code selects.
The filter code.
The coefficient, or 0 when the filter is off.
Reports whether a status register says the calibration is being copied.
The status register.
Whether the calibration image is still loading.
Returns the longest one measurement can take, which is how long a driver waits after forcing one.
The temperature oversampling code.
The pressure oversampling code.
The humidity oversampling code.
The datasheet's maximum in microseconds.
Reports whether a status register says a conversion is running.
The status register.
Whether a measurement is in progress.
Returns how many samples an oversampling code averages.
The oversampling code.
The factor, or 0 when the code skips the measurement.
Returns the standby period a standby code selects in normal mode.
The standby code.
The period in microseconds.
Returns the typical time one measurement takes.
The temperature oversampling code.
The pressure oversampling code.
The humidity oversampling code.
The datasheet's typical time in microseconds.
A Bosch BME280 temperature, pressure, and humidity sensor.