ESPHome  2024.12.2
bme280_i2c.cpp
Go to the documentation of this file.
1 #include <cstddef>
2 #include <cstdint>
3 
4 #include "bme280_i2c.h"
6 #include "../bme280_base/bme280_base.h"
7 
8 namespace esphome {
9 namespace bme280_i2c {
10 
11 bool BME280I2CComponent::read_byte(uint8_t a_register, uint8_t *data) {
12  return I2CDevice::read_byte(a_register, data);
13 };
14 bool BME280I2CComponent::write_byte(uint8_t a_register, uint8_t data) {
15  return I2CDevice::write_byte(a_register, data);
16 };
17 bool BME280I2CComponent::read_bytes(uint8_t a_register, uint8_t *data, size_t len) {
18  return I2CDevice::read_bytes(a_register, data, len);
19 };
20 bool BME280I2CComponent::read_byte_16(uint8_t a_register, uint16_t *data) {
21  return I2CDevice::read_byte_16(a_register, data);
22 };
23 
24 void BME280I2CComponent::dump_config() {
25  LOG_I2C_DEVICE(this);
26  BME280Component::dump_config();
27 }
28 
29 } // namespace bme280_i2c
30 } // namespace esphome
std::string size_t len
Definition: helpers.h:293
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7