ESPHome  2024.11.1
bmp085.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace bmp085 {
9 
11  public:
14 
16  void update() override;
18  void setup() override;
19  void dump_config() override;
20 
21  float get_setup_priority() const override;
22 
23  protected:
24  struct CalibrationData {
25  int16_t ac1, ac2, ac3;
26  uint16_t ac4, ac5, ac6;
27  int16_t b1, b2;
28  int16_t mb, mc, md;
29  float temp;
30  };
31 
33  void read_temperature_();
35  void read_pressure_();
36 
37  bool set_mode_(uint8_t mode);
38 
42 };
43 
44 } // namespace bmp085
45 } // namespace esphome
uint8_t pressure
Definition: tt21100.cpp:19
sensor::Sensor * temperature_
Definition: bmp085.h:39
void setup() override
Setup the sensor and test for a connection.
Definition: bmp085.cpp:22
void set_pressure(sensor::Sensor *pressure)
Definition: bmp085.h:13
CalibrationData calibration_
Definition: bmp085.h:41
This class simplifies creating components that periodically check a state.
Definition: component.h:283
void update() override
Schedule temperature+pressure readings.
Definition: bmp085.cpp:16
sensor::Sensor * pressure_
Definition: bmp085.h:40
void dump_config() override
Definition: bmp085.cpp:43
BedjetMode mode
BedJet operating mode.
Definition: bedjet_codec.h:183
void set_temperature(sensor::Sensor *temperature)
Definition: bmp085.h:12
uint16_t temperature
Definition: sun_gtil2.cpp:26
bool set_mode_(uint8_t mode)
Definition: bmp085.cpp:131
float get_setup_priority() const override
Definition: bmp085.cpp:135
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base-class for all sensors.
Definition: sensor.h:57
void read_pressure_()
Internal method to read the pressure from the component after it has been scheduled.
Definition: bmp085.cpp:91
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133
void read_temperature_()
Internal method to read the temperature from the component after it has been scheduled.
Definition: bmp085.cpp:55