ESPHome  2024.12.2
bmp3xx_i2c.cpp
Go to the documentation of this file.
2 #include "bmp3xx_i2c.h"
3 #include <cinttypes>
4 
5 namespace esphome {
6 namespace bmp3xx_i2c {
7 
8 static const char *const TAG = "bmp3xx_i2c.sensor";
9 
10 bool BMP3XXI2CComponent::read_byte(uint8_t a_register, uint8_t *data) {
11  return I2CDevice::read_byte(a_register, data);
12 };
13 bool BMP3XXI2CComponent::write_byte(uint8_t a_register, uint8_t data) {
14  return I2CDevice::write_byte(a_register, data);
15 };
16 bool BMP3XXI2CComponent::read_bytes(uint8_t a_register, uint8_t *data, size_t len) {
17  return I2CDevice::read_bytes(a_register, data, len);
18 };
19 bool BMP3XXI2CComponent::write_bytes(uint8_t a_register, uint8_t *data, size_t len) {
20  return I2CDevice::write_bytes(a_register, data, len);
21 };
22 
23 void BMP3XXI2CComponent::dump_config() {
24  LOG_I2C_DEVICE(this);
25  BMP3XXComponent::dump_config();
26 }
27 
28 } // namespace bmp3xx_i2c
29 } // namespace esphome
std::string size_t len
Definition: helpers.h:293
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7