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