All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

Default configuration for BME680 device driver. More...

Detailed Description

Default configuration for BME680 device driver.

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_params.h.

#include "board.h"
#include "bme680.h"
#include "saul_reg.h"
+ Include dependency graph for bme680_params.h:

Go to the source code of this file.

Macros

#define BME680_NUMOF   ARRAY_SIZE(bme680_params)
 The number of configured sensors.
 

Variables

static const bme680_params_t bme680_params []
 Configure params for BME680.
 
static const saul_reg_info_t bme680_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Set default configuration parameters for the BME680

#define BME680_PARAM_I2C_DEV   (I2C_DEV(0))
 
#define BME680_PARAM_I2C_ADDR   (BME680_I2C_ADDR_2)
 
#define BME680_PARAM_SPI_DEV   (SPI_DEV(0))
 
#define BME680_PARAM_SPI_NSS_PIN   GPIO_PIN(0, 5)
 
#define BME680_PARAMS_I2C
 Defaults I2C parameters if none provided.
 
#define BME680_PARAMS_SPI
 Defaults SPI parameters if none provided.
 
#define BME680_SAUL_INFO   { .name = "bme680" }
 Default SAUL meta information.
 

Macro Definition Documentation

◆ BME680_NUMOF

#define BME680_NUMOF   ARRAY_SIZE(bme680_params)

The number of configured sensors.

Definition at line 138 of file bme680_params.h.

◆ BME680_PARAM_I2C_ADDR

#define BME680_PARAM_I2C_ADDR   (BME680_I2C_ADDR_2)

Definition at line 43 of file bme680_params.h.

◆ BME680_PARAM_I2C_DEV

#define BME680_PARAM_I2C_DEV   (I2C_DEV(0))

Definition at line 39 of file bme680_params.h.

◆ BME680_PARAM_SPI_DEV

#define BME680_PARAM_SPI_DEV   (SPI_DEV(0))

Definition at line 49 of file bme680_params.h.

◆ BME680_PARAM_SPI_NSS_PIN

#define BME680_PARAM_SPI_NSS_PIN   GPIO_PIN(0, 5)

Definition at line 53 of file bme680_params.h.

◆ BME680_PARAMS_I2C

#define BME680_PARAMS_I2C
Value:
{ \
.ifsel = BME680_I2C_INTF, \
.temp_os = BME680_OS_8X, \
.hum_os = BME680_OS_2X, \
.pres_os = BME680_OS_4X, \
.filter = BME680_FILTER_SIZE_3, \
.gas_measure = BME680_ENABLE_GAS_MEAS, \
.heater_dur = 320, \
.heater_temp = 150, \
.settings = BME680_OST_SEL | \
BME680_OSP_SEL | \
BME680_OSH_SEL | \
BME680_FILTER_SEL | \
BME680_GAS_SENSOR_SEL, \
.intf.i2c.dev = BME680_PARAM_I2C_DEV, \
.intf.i2c.addr = BME680_PARAM_I2C_ADDR, \
}

Defaults I2C parameters if none provided.

Definition at line 60 of file bme680_params.h.

◆ BME680_PARAMS_SPI

#define BME680_PARAMS_SPI
Value:
{ \
.ifsel = BME680_SPI_INTF, \
.temp_os = BME680_OS_8X, \
.hum_os = BME680_OS_2X, \
.pres_os = BME680_OS_4X, \
.filter = BME680_FILTER_SIZE_3, \
.gas_measure = BME680_ENABLE_GAS_MEAS, \
.heater_dur = 320, \
.heater_temp = 150, \
.settings = BME680_OST_SEL | \
BME680_OSP_SEL | \
BME680_OSH_SEL | \
BME680_FILTER_SEL | \
BME680_GAS_SENSOR_SEL, \
.intf.spi.dev = BME680_PARAM_SPI_DEV, \
.intf.spi.nss_pin = BME680_PARAM_SPI_NSS_PIN, \
}

Defaults SPI parameters if none provided.

Definition at line 82 of file bme680_params.h.

◆ BME680_SAUL_INFO

#define BME680_SAUL_INFO   { .name = "bme680" }

Default SAUL meta information.

Definition at line 109 of file bme680_params.h.

Variable Documentation

◆ bme680_params

const bme680_params_t bme680_params[]
static
Initial value:
=
{
}
#define BME680_PARAMS_I2C
Defaults I2C parameters if none provided.
#define BME680_PARAMS_SPI
Defaults SPI parameters if none provided.

Configure params for BME680.

Definition at line 117 of file bme680_params.h.

◆ bme680_saul_info

const saul_reg_info_t bme680_saul_info[]
static
Initial value:
=
{
}
#define BME680_SAUL_INFO
Default SAUL meta information.

Additional meta information to keep in the SAUL registry.

Definition at line 130 of file bme680_params.h.