ESPHome  2024.12.2
bmp280_i2c.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace esphome {
7 namespace bmp280_i2c {
8 
9 static const char *const TAG = "bmp280_i2c.sensor";
10 
13  public:
14  bool read_byte(uint8_t a_register, uint8_t *data) override;
15  bool write_byte(uint8_t a_register, uint8_t data) override;
16  bool read_bytes(uint8_t a_register, uint8_t *data, size_t len) override;
17  bool read_byte_16(uint8_t a_register, uint16_t *data) override;
18  void dump_config() override;
19 };
20 
21 } // namespace bmp280_i2c
22 } // namespace esphome
bool write_byte(uint8_t a_register, uint8_t data) override
Definition: bmp280_i2c.cpp:11
bool read_byte(uint8_t a_register, uint8_t *data) override
Definition: bmp280_i2c.cpp:8
This class implements support for the BMP280 Temperature+Pressure i2c sensor.
Definition: bmp280_i2c.h:12
bool read_byte_16(uint8_t a_register, uint16_t *data) override
Definition: bmp280_i2c.cpp:17
This class implements support for the BMP280 Temperature+Pressure sensor.
Definition: bmp280_base.h:53
bool read_bytes(uint8_t a_register, uint8_t *data, size_t len) override
Definition: bmp280_i2c.cpp:14
std::string size_t len
Definition: helpers.h:293
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133