75 explicit MS5803I2C(
I2C& bus, uint16_t temperatureDivider = 1);
99 uint16_t readReg(uint8_t reg);
106 uint16_t temperatureDivider;
109 uint32_t rawTemperature = 0;
110 uint32_t rawPressure = 0;
111 uint64_t lastTemperatureTimestamp = 0;
112 uint16_t tempCounter = 0;
High level driver for the I2C peripherals.
static PrintLogger getLogger(const string &name)
static constexpr uint8_t TIMEOUT
bool init() override
Initialize the sensor.
bool selfTest() override
Check if the sensor is working.
MS5803I2C(I2C &bus, uint16_t temperatureDivider=1)
MS5803Data sampleImpl() override
Base sensor class with has to be extended by any sensor driver.
This file includes all the types the logdecoder script will decode.
Configuration struct for a slave device. This will be used for configuring the bus in order to commun...
MS5803 calibration data. See page 13 of datasheet for more details.