21#ifndef BME680_PARAMS_H
22#define BME680_PARAMS_H
37#if MODULE_PERIPH_I2C || DOXYGEN
38#ifndef BME680_PARAM_I2C_DEV
39#define BME680_PARAM_I2C_DEV (I2C_DEV(0))
42#ifndef BME680_PARAM_I2C_ADDR
43#define BME680_PARAM_I2C_ADDR (BME680_I2C_ADDR_2)
47#if MODULE_PERIPH_SPI || DOXYGEN
48#ifndef BME680_PARAM_SPI_DEV
49#define BME680_PARAM_SPI_DEV (SPI_DEV(0))
52#ifndef BME680_PARAM_SPI_NSS_PIN
53#define BME680_PARAM_SPI_NSS_PIN GPIO_PIN(0, 5)
60#define BME680_PARAMS_I2C \
62 .ifsel = BME680_I2C_INTF, \
63 .temp_os = BME680_OS_8X, \
64 .hum_os = BME680_OS_2X, \
65 .pres_os = BME680_OS_4X, \
66 .filter = BME680_FILTER_SIZE_3, \
67 .gas_measure = BME680_ENABLE_GAS_MEAS, \
70 .settings = BME680_OST_SEL | \
74 BME680_GAS_SENSOR_SEL, \
75 .intf.i2c.dev = BME680_PARAM_I2C_DEV, \
76 .intf.i2c.addr = BME680_PARAM_I2C_ADDR, \
82#define BME680_PARAMS_SPI \
84 .ifsel = BME680_SPI_INTF, \
85 .temp_os = BME680_OS_8X, \
86 .hum_os = BME680_OS_2X, \
87 .pres_os = BME680_OS_4X, \
88 .filter = BME680_FILTER_SIZE_3, \
89 .gas_measure = BME680_ENABLE_GAS_MEAS, \
92 .settings = BME680_OST_SEL | \
96 BME680_GAS_SENSOR_SEL, \
97 .intf.spi.dev = BME680_PARAM_SPI_DEV, \
98 .intf.spi.nss_pin = BME680_PARAM_SPI_NSS_PIN, \
104#ifndef BME680_SAUL_INFO
105#if MODULE_BME680_I2C && MODULE_BME680_SPI
106#define BME680_SAUL_INFO { .name = "bme680:0" }, \
107 { .name = "bme680:1" },
109#define BME680_SAUL_INFO { .name = "bme680" }
119#if MODULE_BME680_I2C || DOXYGEN
122#if MODULE_BME680_SPI || DOXYGEN
138#define BME680_NUMOF ARRAY_SIZE(bme680_params)
Interface definition for the Bosch BME680 sensor.
#define BME680_SAUL_INFO
Default SAUL meta information.
#define BME680_PARAMS_I2C
Defaults I2C parameters if none provided.
#define BME680_PARAMS_SPI
Defaults SPI parameters if none provided.
static const saul_reg_info_t bme680_saul_info[]
Additional meta information to keep in the SAUL registry.
static const bme680_params_t bme680_params[]
Configure params for BME680.
SAUL registry interface definition.
BME680 device initialization parameters.
Additional data to collect for each entry.