Go to the documentation of this file.
23 #ifndef BMX280_PARAMS_H
24 #define BMX280_PARAMS_H
40 #ifndef BMX280_PARAM_SPI
41 #define BMX280_PARAM_SPI SPI_DEV(0)
43 #ifndef BMX280_PARAM_CLK
44 #define BMX280_PARAM_CLK SPI_CLK_5MHZ
46 #ifndef BMX280_PARAM_CS
47 #define BMX280_PARAM_CS GPIO_PIN(0, 0)
51 #ifndef BMX280_PARAM_I2C_DEV
52 #define BMX280_PARAM_I2C_DEV I2C_DEV(0)
54 #ifndef BMX280_PARAM_I2C_ADDR
55 #define BMX280_PARAM_I2C_ADDR (0x77)
59 #define BMX280_PARAM_MISC \
60 .t_sb = BMX280_SB_0_5, \
61 .filter = BMX280_FILTER_OFF, \
62 .run_mode = BMX280_MODE_FORCED, \
63 .temp_oversample = BMX280_OSRS_X1, \
64 .press_oversample = BMX280_OSRS_X1, \
65 .humid_oversample = BMX280_OSRS_X1, \
70 #define BMX280_PARAMS \
72 .spi = BMX280_PARAM_SPI, \
73 .clk = BMX280_PARAM_CLK, \
74 .cs = BMX280_PARAM_CS, \
78 #define BMX280_PARAMS \
80 .i2c_dev = BMX280_PARAM_I2C_DEV, \
81 .i2c_addr = BMX280_PARAM_I2C_ADDR, \
99 #define BMX280_NUMOF ARRAY_SIZE(bmx280_params)
110 #if defined(MODULE_BME280_SPI) || defined(MODULE_BME280_I2C)
static const bmx280_params_t bmx280_params[]
Configure BMX280.
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.
Additional data to collect for each entry.
const char * name
string identifier for a device
Parameters for the BMX280 sensor.
SAUL registry interface definition.
#define BMX280_NUMOF
The number of configured sensors.