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;
40 void setup()
override;
This class simplifies creating components that periodically check a state.
void dump_config() override
sensor::Sensor * pressure_sensor_
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
sensor::Sensor * temperature_sensor_
void set_pressure_sensor(sensor::Sensor *pressure_sensor)
void calculate_values_(int32_t raw_temperature, int32_t raw_pressure)
static int32_t twos_complement(int32_t val, uint8_t bits)
This Class provides the methods to read/write bytes from/to an i2c device.
Base-class for all sensors.