bme680: Driver for BME680 digital environmental sensor
- struct bme680_values_fixed_t
#include <bme680.h>Fixed point sensor values (fixed THPG values)
- struct bme680_values_float_t
#include <bme680.h>Floating point sensor values (real THPG values)
- struct bme680_settings_t
#include <bme680.h>Sensor parameters that configure the TPHG measurement cycle.
T - temperature measurement P - pressure measurement H - humidity measurement G - gas measurement
Public Members
- bme680_oversampling_rate_t osr_temperature
T oversampling rate (default
BME680_OSR_1X
)
- bme680_oversampling_rate_t osr_pressure
P oversampling rate (default
BME680_OSR_1X
)
- bme680_oversampling_rate_t osr_humidity
H oversampling rate (default
BME680_OSR_1X
)
- bme680_filter_size_t filter_size
IIR filter size (default
BME680_IIR_SIZE_3
)
- int8_t heater_profile
Heater profile used (default 0)
- uint16_t heater_temperature[10]
Heater temperature for G (default 320)
- uint16_t heater_duration[10]
Heater duration for G (default 150)
- int8_t ambient_temperature
Ambient temperature for G (default 25)
- struct bme680_calib_data_t
#include <bme680.h>Data structure for calibration parameters.
These calibration parameters are used in compensation algorithms to convert raw sensor data to measurement results.
Public Members
- uint16_t par_t1
calibration data for temperature compensation
- int16_t par_t2
- int8_t par_t3
- uint16_t par_p1
calibration data for pressure compensation
- int16_t par_p2
- int8_t par_p3
- int16_t par_p4
- int16_t par_p5
- int8_t par_p7
- int8_t par_p6
- int16_t par_p8
- int16_t par_p9
- uint8_t par_p10
- uint16_t par_h1
calibration data for humidity compensation
- uint16_t par_h2
- int8_t par_h3
- int8_t par_h4
- int8_t par_h5
- uint8_t par_h6
- int8_t par_h7
- int8_t par_gh1
calibration data for gas compensation
- int16_t par_gh2
- int8_t par_gh3
- int32_t t_fine
temperature correction factor for P and G
- uint8_t res_heat_range
- int8_t res_heat_val
- int8_t range_sw_err
- struct bme680_t
#include <bme680.h>BME680 sensor device data structure type.
Public Members
- i2c_dev_t i2c_dev
I2C device descriptor.
- bool meas_started
Indicates whether measurement started.
- uint8_t meas_status
Last sensor status (for internal use only)
- bme680_settings_t settings
Sensor settings.
- bme680_calib_data_t calib_data
Calibration data of the sensor.