52 float a1, a2, bt1, bt2, bp1, b11, bp2, b12, b21, bp3;
58 int64_t bt1, bt2, bp1, b11, bp2, b12, b21, bp3;
76 void setup()
override;
This class simplifies creating components that periodically check a state.
This Class provides the methods to read/write bytes from/to an i2c device.
QMP6988IIRFilter iir_filter_
void write_filter_(QMP6988IIRFilter filter)
sensor::Sensor * temperature_sensor_
void calculate_altitude_(float pressure, float temp)
void calculate_pressure_()
int32_t get_compensated_pressure_(qmp6988_ik_data_t *ik, int32_t dp, int16_t tx)
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
QMP6988Oversampling pressure_oversampling_
void write_oversampling_pressure_(QMP6988Oversampling oversampling_p)
bool get_calibration_data_()
sensor::Sensor * pressure_sensor_
QMP6988Oversampling temperature_oversampling_
void set_iir_filter(QMP6988IIRFilter iirfilter)
void set_temperature_oversampling(QMP6988Oversampling oversampling_t)
void dump_config() override
int16_t get_compensated_temperature_(qmp6988_ik_data_t *ik, int32_t dt)
void set_power_mode_(uint8_t power_mode)
qmp6988_data_t qmp6988_data_
void set_pressure_sensor(sensor::Sensor *pressure_sensor)
void set_pressure_oversampling(QMP6988Oversampling oversampling_p)
void write_oversampling_temperature_(QMP6988Oversampling oversampling_t)
Base-class for all sensors.
struct Qmp6988IkData { int32_t a0, b00; int32_t a1, a2; int64_t bt1, bt2, bp1, b11, bp2, b12, b21, bp3;} qmp6988_ik_data_t
struct Qmp6988FkData { float a0, b00; float a1, a2, bt1, bt2, bp1, b11, bp2, b12, b21, bp3;} qmp6988_fk_data_t
struct Qmp6988Data { uint8_t chip_id; uint8_t power_mode; float temperature; float pressure; float altitude; qmp6988_cali_data_t qmp6988_cali; qmp6988_ik_data_t ik;} qmp6988_data_t
@ QMP6988_OVERSAMPLING_8X
@ QMP6988_OVERSAMPLING_SKIPPED
@ QMP6988_OVERSAMPLING_16X
@ QMP6988_OVERSAMPLING_32X
@ QMP6988_OVERSAMPLING_2X
@ QMP6988_OVERSAMPLING_64X
@ QMP6988_OVERSAMPLING_1X
@ QMP6988_OVERSAMPLING_4X
struct Qmp6988CaliData { int32_t COE_a0; int16_t COE_a1; int16_t COE_a2; int32_t COE_b00; int16_t COE_bt1; int16_t COE_bt2; int16_t COE_bp1; int16_t COE_b11; int16_t COE_bp2; int16_t COE_b12; int16_t COE_b21; int16_t COE_bp3;} qmp6988_cali_data_t
Providing packet encoding functions for exchanging data with a remote host.