Bosch BMP380/BMP390 Pressure sensor driver (compatible bosch,bmp380).
More...
Bosch BMP380/BMP390 Pressure sensor driver (compatible bosch,bmp380).
Runs one forced-mode conversion per read and leaves the sensor in sleep mode otherwise.
#define PBL_BMP390_DEFINE(sym, _bus, _addr)
Define a BMP390.
Definition bmp390.h:65
Pressure sensor.
Definition pressure.h:46
const struct pbl_pressure *const PRESSURE
The board's barometric pressure sensor.
◆ pbl_bmp390_calib
BMP390 trimming coefficients, as stored in its NVM.
| Data Fields |
|
int16_t |
par_p1 |
|
|
int8_t |
par_p10 |
|
|
int8_t |
par_p11 |
|
|
int16_t |
par_p2 |
|
|
int8_t |
par_p3 |
|
|
int8_t |
par_p4 |
|
|
uint16_t |
par_p5 |
|
|
uint16_t |
par_p6 |
|
|
int8_t |
par_p7 |
|
|
int8_t |
par_p8 |
|
|
int16_t |
par_p9 |
|
|
uint16_t |
par_t1 |
|
|
uint16_t |
par_t2 |
|
|
int8_t |
par_t3 |
|
◆ pbl_bmp390
◆ PBL_BMP390_DEFINE
| #define PBL_BMP390_DEFINE |
( |
|
sym, |
|
|
|
_bus, |
|
|
|
_addr |
|
) |
| |
Value:
.calib = &sym##_bmp390_calib, .i2c =
PBL_I2C_DEV(_bus, _addr), \
}
#define PBL_I2C_DEV(_bus, _addr)
Initializer for a struct pbl_i2c_dev.
Definition i2c.h:136
BMP390 trimming coefficients, as stored in its NVM.
Definition bmp390.h:27
BMP390 pressure sensor.
Definition bmp390.h:45
#define PBL_PRESSURE_INIT(sym, _name, _parent, _ops)
Initialize a struct pbl_pressure.
Definition pressure.h:80
#define PBL_PRESSURE_STATE_DEFINE(sym)
Define the class state of a pressure sensor.
Definition pressure.h:68
Define a BMP390.
- Parameters
-
| sym | Symbol of the instance, a struct pbl_pressure. |
| _bus | I2C bus. |
| _addr | 7-bit I2C address. |