13 #define QMP6988_U16_t unsigned short 14 #define QMP6988_S16_t short 15 #define QMP6988_U32_t unsigned int 16 #define QMP6988_S32_t int 17 #define QMP6988_U64_t unsigned long long 18 #define QMP6988_S64_t long long 63 QMP6988_S32_t a0, b00;
83 void setup()
override;
84 void dump_config()
override;
85 float get_setup_priority()
const override;
86 void update()
override;
101 void software_reset_();
102 bool get_calibration_data_();
103 bool device_check_();
105 void write_oversampling_temperature_(
unsigned char oversampling_t);
106 void write_oversampling_pressure_(
unsigned char oversampling_p);
107 void write_filter_(
unsigned char filter);
108 void calculate_pressure_();
109 void calculate_altitude_(
float pressure,
float temp);
111 QMP6988_S32_t get_compensated_pressure_(
qmp6988_ik_data_t *
ik, QMP6988_S32_t dp, QMP6988_S16_t tx);
112 QMP6988_S16_t get_compensated_temperature_(
qmp6988_ik_data_t *ik, QMP6988_S32_t dt);
struct Qmp6988IkData { QMP6988_S32_t a0, b00 qmp6988_ik_data_t
void set_pressure_sensor(sensor::Sensor *pressure_sensor)
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
qmp6988_cali_data_t qmp6988_cali
This class simplifies creating components that periodically check a state.
qmp6988_data_t qmp6988_data_
struct Qmp6988Data { uint8_t chip_id qmp6988_data_t
struct Qmp6988FkData { float a0, b00 qmp6988_fk_data_t
struct Qmp6988CaliData { QMP6988_S32_t COE_a0 qmp6988_cali_data_t
Implementation of SPI Controller mode.
Base-class for all sensors.
This Class provides the methods to read/write bytes from/to an i2c device.