Library for interfacing Bosch Sensortec BMP280 pressure sensor
The BMP280 is an absolute barometric pressure sensor especially designed for mobile applications. -) I2C interface with communication speed up to 3.4 MHz -) Two user selectable addresses (chosen by chip pin) -) Pressure range: 300 to 1100hPa (equiv. to +9000...-500 m above/below sea level) -) Temperature range : -40 to 85°C
typical I2C clock speed to be used
Available BMP280 I2C addresses
Available Power Modes (BMP280_CTRL_MEAS_ADDR, Bit 0-1)
Oversampling configuration for pressure data (BMP280_CTRL_MEAS_ADDR, Bit 2-4)
Oversampling configuration for temperature data (BMP280_CTRL_MEAS_ADDR, Bit 5-7)
Standby time (i.e. inactive time) in normal mode (BMP280_CONFIG_ADDR, Bit 5-7)
Filter coefficient options (BMP280_CONFIG_ADDR, Bit 2-4)
Initializes i2c communication with the BMP280 and prepares the BMP280 for use
First reads the chip ID and checks if a chip supported by the library has been found. Afterwards, the calibration parameters are read out and stored in the transferred, empty device handle for a BMP280.
Activates the BMP280 by setting the "ctrl_meas" register and the "config" register
Before activating, the BMP280 is set into sleep mode to establish a defined operating state
reads the measured values from the BMP280.
Sets the BMP280 into sleep mode (i.e. no measurements are performed) and thus grants minimum power consumption
absolute maximum I2C clock speed
BMP280 Register Addresses (Address | Default | Description)
Flags contained in the status register
Resets the BMP280 using the complete power-on-reset procedure
Executes an I2C communication with the BMP280. Data is first of all sent and data is then received.