39 #ifndef BMX280_PARAM_SPI
40 #define BMX280_PARAM_SPI SPI_DEV(0)
42 #ifndef BMX280_PARAM_CLK
43 #define BMX280_PARAM_CLK SPI_CLK_5MHZ
45 #ifndef BMX280_PARAM_CS
46 #define BMX280_PARAM_CS GPIO_PIN(0, 0)
50 #ifndef BMX280_PARAM_I2C_DEV
51 #define BMX280_PARAM_I2C_DEV I2C_DEV(0)
53 #ifndef BMX280_PARAM_I2C_ADDR
54 #define BMX280_PARAM_I2C_ADDR (0x77)
58 #define BMX280_PARAM_MISC \
59 .t_sb = BMX280_SB_0_5, \
60 .filter = BMX280_FILTER_OFF, \
61 .run_mode = BMX280_MODE_FORCED, \
62 .temp_oversample = BMX280_OSRS_X1, \
63 .press_oversample = BMX280_OSRS_X1, \
64 .humid_oversample = BMX280_OSRS_X1, \
69 #define BMX280_PARAMS \
71 .spi = BMX280_PARAM_SPI, \
72 .clk = BMX280_PARAM_CLK, \
73 .cs = BMX280_PARAM_CS, \
77 #define BMX280_PARAMS \
79 .i2c_dev = BMX280_PARAM_I2C_DEV, \
80 .i2c_addr = BMX280_PARAM_I2C_ADDR, \
98 #define BMX280_NUMOF ARRAY_SIZE(bmx280_params)
109 #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.
SAUL registry interface definition.
Parameters for the BMX280 sensor.
Additional data to collect for each entry.
const char * name
string identifier for a device