7 namespace bme280_base {
77 void setup()
override;
78 void dump_config()
override;
79 float get_setup_priority()
const override;
80 void update()
override;
84 float read_temperature_(
const uint8_t *data, int32_t *t_fine);
86 float read_pressure_(
const uint8_t *data, int32_t t_fine);
88 float read_humidity_(
const uint8_t *data, int32_t t_fine);
89 uint8_t read_u8_(uint8_t a_register);
90 uint16_t read_u16_le_(uint8_t a_register);
91 int16_t read_s16_le_(uint8_t a_register);
93 virtual bool read_byte(uint8_t a_register, uint8_t *data) = 0;
94 virtual bool write_byte(uint8_t a_register, uint8_t data) = 0;
95 virtual bool read_bytes(uint8_t a_register, uint8_t *data,
size_t len) = 0;
96 virtual bool read_byte_16(uint8_t a_register, uint16_t *data) = 0;
void set_pressure_sensor(sensor::Sensor *pressure_sensor)
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
This class simplifies creating components that periodically check a state.
BME280IIRFilter
Enum listing all Infinite Impulse Filter values for the BME280.
BME280CalibrationData calibration_
Internal struct storing the calibration values of an BME280.
BME280Oversampling
Enum listing all Oversampling values for the BME280.
This class implements support for the BME280 Temperature+Pressure+Humidity sensor.
Implementation of SPI Controller mode.
Base-class for all sensors.
void set_humidity_sensor(sensor::Sensor *humidity_sensor)