7 namespace bmp280_base {
65 void setup()
override;
66 void dump_config()
override;
67 float get_setup_priority()
const override;
68 void update()
override;
70 virtual bool read_byte(uint8_t a_register, uint8_t *data) = 0;
71 virtual bool write_byte(uint8_t a_register, uint8_t data) = 0;
72 virtual bool read_bytes(uint8_t a_register, uint8_t *data,
size_t len) = 0;
73 virtual bool read_byte_16(uint8_t a_register, uint16_t *data) = 0;
77 float read_temperature_(int32_t *t_fine);
79 float read_pressure_(int32_t t_fine);
80 uint8_t read_u8_(uint8_t a_register);
81 uint16_t read_u16_le_(uint8_t a_register);
82 int16_t read_s16_le_(uint8_t a_register);
Internal struct storing the calibration values of an BMP280.
BMP280Oversampling
Enum listing all Oversampling values for the BMP280.
This class simplifies creating components that periodically check a state.
BMP280CalibrationData calibration_
void set_pressure_sensor(sensor::Sensor *pressure_sensor)
BMP280IIRFilter
Enum listing all Infinite Impulse Filter values for the BMP280.
This class implements support for the BMP280 Temperature+Pressure sensor.
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
Implementation of SPI Controller mode.
Base-class for all sensors.