Interface definition for the Bosch BME680 sensor. More...

Detailed Description

Interface definition for the Bosch BME680 sensor.

Author
Dylan Laduranty dylan.nosp@m..lad.nosp@m.urant.nosp@m.y@me.nosp@m.sotic.nosp@m..com
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file bme680.h.

#include "periph/i2c.h"
#include "periph/spi.h"
#include "bme680_hal.h"
#include "bme680_internal.h"
+ Include dependency graph for bme680.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bme680_field_data
 BME680 sensor field data. More...
 
struct  bme680_intf_i2c_t
 BME680 I2C parameters. More...
 
struct  bme680_intf_spi_t
 BME680 SPI parameters. More...
 
union  bme680_intf_t
 BME680 Hardware interface parameters union. More...
 
struct  bme680_params_t
 BME680 device initialization parameters. More...
 
struct  bme680_t
 BME680 device descriptor. More...
 

Macros

#define BME680_I2C_ADDR_1   (0x76)
 I2C address when SDO pin is LOW.
 
#define BME680_I2C_ADDR_2   (0x77)
 I2C address when SDO pin is HIGH.
 
#define BME680_SENSOR(d)   (*((struct bme680_dev *)d))
 Converts a BME680 device descriptor to the BME680 sensor device structure for the vendor BME680 device driver.
 

Typedefs

typedef struct bme680_field_data bme680_field_data_t
 Shortcut type definition for BME680 sensor field data.
 
typedef struct bme680_dev bme680_dev_t
 Shortcut type definition for BME680 sensor device structure. More...
 

Enumerations

enum  {
  BME680_NULL_PTR = -1, BME680_COM_FAILED = -2, BME680_NO_DEV = -3, BME680_INVALID = -4,
  BME680_NO_NEW_DATA = -5
}
 Named return values. More...
 

Functions

int bme680_init (bme680_t *dev, const bme680_params_t *params)
 Initialize the BME680 sensor. More...
 
int bme680_force_measurement (bme680_t *dev)
 Force a single TPHG measurement cycle. More...
 
int bme680_get_duration (bme680_t *dev)
 Duration one THPG measurement cycle. More...
 
int bme680_get_data (bme680_t *dev, bme680_field_data_t *data)
 Get results of a TPHG measurement. More...
 
int bme680_set_ambient_temp (bme680_t *dev, int8_t temp)
 Set the ambient temperature. More...
 

Variables

bme680_tbme680_devs []
 References to BME680 sensor devices used by the HAL functions.
 
unsigned int bme680_devs_numof
 Number of initialized BME680 sensor devices in bme680_devs.