37#ifndef BMX280_PARAM_SPI
38#define BMX280_PARAM_SPI SPI_DEV(0)
40#ifndef BMX280_PARAM_CLK
41#define BMX280_PARAM_CLK SPI_CLK_5MHZ
43#ifndef BMX280_PARAM_CS
44#define BMX280_PARAM_CS GPIO_PIN(0, 0)
48#ifndef BMX280_PARAM_I2C_DEV
49#define BMX280_PARAM_I2C_DEV I2C_DEV(0)
51#ifndef BMX280_PARAM_I2C_ADDR
52#define BMX280_PARAM_I2C_ADDR (0x77)
56#define BMX280_PARAM_MISC \
57 .t_sb = BMX280_SB_0_5, \
58 .filter = BMX280_FILTER_OFF, \
59 .run_mode = BMX280_MODE_FORCED, \
60 .temp_oversample = BMX280_OSRS_X1, \
61 .press_oversample = BMX280_OSRS_X1, \
62 .humid_oversample = BMX280_OSRS_X1, \
67#define BMX280_PARAMS \
69 .spi = BMX280_PARAM_SPI, \
70 .clk = BMX280_PARAM_CLK, \
71 .cs = BMX280_PARAM_CS, \
75#define BMX280_PARAMS \
77 .i2c_dev = BMX280_PARAM_I2C_DEV, \
78 .i2c_addr = BMX280_PARAM_I2C_ADDR, \
96#define BMX280_NUMOF ARRAY_SIZE(bmx280_params)
107#if defined(MODULE_BME280_SPI) || defined(MODULE_BME280_I2C)
Device driver interface for the BMP280 and BME280 sensors.
static const saul_reg_info_t bmx280_saul_reg_info[BMX280_NUMOF]
Configuration details of SAUL registry entries.
static const bmx280_params_t bmx280_params[]
Configure BMX280.
#define BMX280_NUMOF
The number of configured sensors.
Common macros and compiler attributes/pragmas configuration.
SAUL registry interface definition.
Parameters for the BMX280 sensor.
Additional data to collect for each entry.