ESPHome 2025.5.0
Loading...
Searching...
No Matches
bmp3xx_i2c.cpp
Go to the documentation of this file.
2#include "bmp3xx_i2c.h"
3#include <cinttypes>
4
5namespace esphome {
6namespace bmp3xx_i2c {
7
8static const char *const TAG = "bmp3xx_i2c.sensor";
9
10bool BMP3XXI2CComponent::read_byte(uint8_t a_register, uint8_t *data) {
11 return I2CDevice::read_byte(a_register, data);
12};
13bool BMP3XXI2CComponent::write_byte(uint8_t a_register, uint8_t data) {
14 return I2CDevice::write_byte(a_register, data);
15};
16bool BMP3XXI2CComponent::read_bytes(uint8_t a_register, uint8_t *data, size_t len) {
17 return I2CDevice::read_bytes(a_register, data, len);
18};
19bool BMP3XXI2CComponent::write_bytes(uint8_t a_register, uint8_t *data, size_t len) {
20 return I2CDevice::write_bytes(a_register, data, len);
21};
22
23void BMP3XXI2CComponent::dump_config() {
24 LOG_I2C_DEVICE(this);
25 BMP3XXComponent::dump_config();
26}
27
28} // namespace bmp3xx_i2c
29} // namespace esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
std::string size_t len
Definition helpers.h:301