Go to the documentation of this file.
114 #ifdef MODULE_BME680_FP
115 #define BME680_FLOAT_POINT_COMPENSATION
119 #include "bme680_internal.h"
128 #define BME680_I2C_ADDR_1 (0x76)
133 #define BME680_I2C_ADDR_2 (0x77)
139 #define BME680_SENSOR(d) (*((struct bme680_dev *)d))
163 #ifndef MODULE_BME680_FP
234 struct bme680_dev sensor;
bme680_intf_t intf
Hardware interface parameters.
int bme680_force_measurement(bme680_t *dev)
Force a single TPHG measurement cycle.
Low-level SPI peripheral driver interface definition.
uint8_t pres_os
Pressure oversampling.
int16_t temperature
Temperature in degree Celsius x 100.
gpio_t nss_pin
Chip Select pin.
unsigned int bme680_devs_numof
Number of initialized BME680 sensor devices in bme680_devs.
bme680_intf_i2c_t i2c
I2C specific interface parameters.
uint8_t hum_os
Humidity oversampling.
unsigned int i2c_t
Default i2c_t type definition.
@ BME680_NO_DEV
Device doesn't exist.
bme680_intf_spi_t spi
SPI specific interface parameters.
uint8_t meas_index
Measurement index.
Abstraction layer for RIOT adaption.
uint8_t ifsel
Interface selection.
BME680 device initialization parameters.
spi_t dev
SPI device which is used.
int bme680_set_ambient_temp(bme680_t *dev, int8_t temp)
Set the ambient temperature.
@ BME680_INVALID
Invalid value or length.
bme680_intf_t intf
Device interface.
BME680 sensor field data.
uint32_t humidity
Relative humidity in percent x 1000.
uint8_t status
Status for new data, gas measurement valid and heater stable.
uint8_t gas_index
Index of used heater profile.
int bme680_get_data(bme680_t *dev, bme680_field_data_t *data)
Get results of a TPHG measurement.
i2c_t dev
I2C device which is used.
@ BME680_COM_FAILED
Communication with the device failed.
uint16_t heater_temp
Heater temperature in °C.
bme680_t * bme680_devs[]
References to BME680 sensor devices used by the HAL functions.
uint8_t filter
IIR filter coefficient.
uint8_t settings
Settings used.
int bme680_get_duration(bme680_t *dev)
Duration one THPG measurement cycle.
uint8_t temp_os
Temperature oversampling.
BME680 Hardware interface parameters union.
uint8_t gas_measure
Enable gas measurement.
uint8_t power_mode
Power mode (sleep or forced)
@ BME680_NULL_PTR
NULL pointer check failed.
int bme680_init(bme680_t *dev, const bme680_params_t *params)
Initialize the BME680 sensor.
struct bme680_dev bme680_dev_t
Shortcut type definition for BME680 sensor device structure.
Low-level I2C peripheral driver interface definition.
uint16_t heater_dur
Heater duration in ms.
@ BME680_NO_NEW_DATA
No new data.
BME680 device descriptor.
uint32_t gas_resistance
Gas resistance in ohms.
uint32_t pressure
Pressure in Pascal.
unsigned int spi_t
Default type for SPI devices.