5#ifndef MRAS_SENSOR_MS5607_H
6#define MRAS_SENSOR_MS5607_H
12#define MS5607_RESET 0x1E
13#define MS5607_PROM_READ 0xA0
40 uint32_t i2c_frequency;
43 uint8_t CONV_D1 = 0x48;
44 uint8_t CONV_D2 = 0x58;
45 uint8_t CONV_Delay = 10;
56 uint32_t D1_pressure{};
57 uint32_t D2_temperature{};
59 float dT{}, TEMP{}, P{};
60 int64_t OFF{}, SENS{};
62 uint32_t lastStateChange = 0;
87 bool read_PROM_coefficient(uint8_t command, uint16_t &store);
104 void set_oversampling_ratio(uint16_t newOversamplingRatio);
111 bool read_ADC(uint32_t &output);
115 i2c_address(i2c_address),
117 i2c_frequency(frequency) {};
119 int8_t setup()
override;
121 int8_t loop()
override;
123 SUBSYSTEM_NO_MESSAGE_HANDLER
125 SUBSYSTEM_NAME(
"MS5607")
Definition: Sensor_MS5607.h:36
Definition: Subsystem.h:30