Skip to main content

Module sim

Module sim 

Source
Expand description

A BMP280 that is not there.

A BMP280 is a BME280 without humidity: the same temperature and pressure registers and the same calibration layout. So part holds the temperature and pressure half of the real part the BME280 simulation was read from, and reads 20.44 C and 848.05 hPa. reporting reads whatever it is asked to, against the BMP280’s own compensation.

Constants§

BURST
The six data registers part holds from 0xF7: the pressure and temperature of the one measurement that part took.
CALIBRATION
The 24 trimming bytes part holds from 0x88: the temperature and pressure block of the real part the BME280 simulation was read from.
STATUS_IDLE
The status a part reports when it is neither measuring nor loading its calibration.

Functions§

burst_for
The six data registers that compensate to a reading against calibration.
calibration
The calibration part holds.
part
A BMP280 answering at an address, holding a real calibration and one measurement.
reporting
A BMP280 that reads what it is asked to.