10static const uint8_t DPS310_REG_PRS_B2 = 0x00;
11static const uint8_t DPS310_REG_TMP_B2 = 0x03;
12static const uint8_t DPS310_REG_PRS_CFG = 0x06;
13static const uint8_t DPS310_REG_TMP_CFG = 0x07;
14static const uint8_t DPS310_REG_MEAS_CFG = 0x08;
15static const uint8_t DPS310_REG_CFG = 0x09;
16static const uint8_t DPS310_REG_RESET = 0x0C;
17static const uint8_t DPS310_REG_PROD_REV_ID = 0x0D;
18static const uint8_t DPS310_REG_COEF = 0x10;
19static const uint8_t DPS310_REG_TMP_COEF_SRC = 0x28;
21static const uint8_t DPS310_BIT_PRS_RDY = 0x10;
22static const uint8_t DPS310_BIT_TMP_RDY = 0x20;
23static const uint8_t DPS310_BIT_SENSOR_RDY = 0x40;
24static const uint8_t DPS310_BIT_COEF_RDY = 0x80;
25static const uint8_t DPS310_BIT_TMP_COEF_SRC = 0x80;
26static const uint8_t DPS310_BIT_REQ_PRES = 0x01;
27static const uint8_t DPS310_BIT_REQ_TEMP = 0x02;
29static const uint8_t DPS310_CMD_RESET = 0x89;
31static const uint8_t DPS310_VAL_PRS_CFG = 0x01;
32static const uint8_t DPS310_VAL_TMP_CFG = 0x01;
33static const uint8_t DPS310_VAL_REG_CFG = 0x00;
35static const uint8_t DPS310_INIT_TIMEOUT = 20;
36static const uint8_t DPS310_NUM_COEF_REGS = 18;
37static const int32_t DPS310_SCALE_FACTOR = 1572864;
41 void setup()
override;
This class simplifies creating components that periodically check a state.
void dump_config() override
float get_setup_priority() const 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.
Providing packet encoding functions for exchanging data with a remote host.