9static const uint8_t DPS310_REG_PRS_B2 = 0x00;
10static const uint8_t DPS310_REG_TMP_B2 = 0x03;
11static const uint8_t DPS310_REG_PRS_CFG = 0x06;
12static const uint8_t DPS310_REG_TMP_CFG = 0x07;
13static const uint8_t DPS310_REG_MEAS_CFG = 0x08;
14static const uint8_t DPS310_REG_CFG = 0x09;
15static const uint8_t DPS310_REG_RESET = 0x0C;
16static const uint8_t DPS310_REG_PROD_REV_ID = 0x0D;
17static const uint8_t DPS310_REG_COEF = 0x10;
18static const uint8_t DPS310_REG_TMP_COEF_SRC = 0x28;
20static const uint8_t DPS310_BIT_PRS_RDY = 0x10;
21static const uint8_t DPS310_BIT_TMP_RDY = 0x20;
22static const uint8_t DPS310_BIT_SENSOR_RDY = 0x40;
23static const uint8_t DPS310_BIT_COEF_RDY = 0x80;
24static const uint8_t DPS310_BIT_TMP_COEF_SRC = 0x80;
25static const uint8_t DPS310_BIT_REQ_PRES = 0x01;
26static const uint8_t DPS310_BIT_REQ_TEMP = 0x02;
28static const uint8_t DPS310_CMD_RESET = 0x89;
30static const uint8_t DPS310_VAL_PRS_CFG = 0x01;
31static const uint8_t DPS310_VAL_TMP_CFG = 0x01;
32static const uint8_t DPS310_VAL_REG_CFG = 0x00;
34static const uint8_t DPS310_INIT_TIMEOUT = 20;
35static const uint8_t DPS310_NUM_COEF_REGS = 18;
36static const int32_t DPS310_SCALE_FACTOR = 1572864;
43 void setup()
override;
44 void dump_config()
override;
45 void update()
override;
virtual void setup()
Where the component's initialization should happen.
This class simplifies creating components that periodically check a state.
void calculate_values_(int32_t raw_temperature, int32_t raw_pressure)
bool setup_registers_()
Configure the sensor; false on a failure.
This Class provides the methods to read/write bytes from/to an i2c device.