Default configuration for BMX280. More...

Detailed Description

#include "board.h"
#include "bmx280.h"
#include "saul_reg.h"
+ Include dependency graph for bmx280_params.h:

Go to the source code of this file.

Macros

#define BMX280_NUMOF   ARRAY_SIZE(bmx280_params)
 The number of configured sensors.
 

Variables

static const bmx280_params_t bmx280_params []
 Configure BMX280. More...
 
static const saul_reg_info_t bmx280_saul_reg_info [BMX280_NUMOF]
 Configuration details of SAUL registry entries. More...
 

Set default configuration parameters for the BMX280

#define BMX280_PARAM_I2C_DEV   I2C_DEV(0)
 
#define BMX280_PARAM_I2C_ADDR   (0x77)
 
#define BMX280_PARAM_MISC
 
#define BMX280_PARAMS
 

Macro Definition Documentation

◆ BMX280_PARAM_MISC

#define BMX280_PARAM_MISC
Value:
.t_sb = BMX280_SB_0_5, \
.filter = BMX280_FILTER_OFF, \
.run_mode = BMX280_MODE_FORCED, \
.temp_oversample = BMX280_OSRS_X1, \
.press_oversample = BMX280_OSRS_X1, \
.humid_oversample = BMX280_OSRS_X1, \

Definition at line 59 of file bmx280_params.h.

◆ BMX280_PARAMS

#define BMX280_PARAMS
Value:
{ \
.i2c_dev = BMX280_PARAM_I2C_DEV, \
.i2c_addr = BMX280_PARAM_I2C_ADDR, \
BMX280_PARAM_MISC \
}

Definition at line 78 of file bmx280_params.h.

Variable Documentation

◆ bmx280_params

const bmx280_params_t bmx280_params[]
static
Initial value:
=
{
BMX280_PARAMS
}

Configure BMX280.

Definition at line 91 of file bmx280_params.h.

◆ bmx280_saul_reg_info

const saul_reg_info_t bmx280_saul_reg_info[BMX280_NUMOF]
static
Initial value:
=
{
{ .name = "bmp280" }
}

Configuration details of SAUL registry entries.

This two dimensional array contains static details of the sensors for each device. Please be awar that the indexes are used in auto_init_bmx280, so make sure the indexes match.

Definition at line 108 of file bmx280_params.h.

BMX280_PARAM_I2C_ADDR
#define BMX280_PARAM_I2C_ADDR
BMP280 Pressure and temperature sensor.
Definition: board.h:164