ESPHome 2025.5.0
Loading...
Searching...
No Matches
ina2xx_i2c.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace ina2xx_i2c {
9
11 public:
12 void setup() override;
13 void dump_config() override;
14
15 protected:
16 bool read_ina_register(uint8_t reg, uint8_t *data, size_t len) override;
17 bool write_ina_register(uint8_t reg, const uint8_t *data, size_t len) override;
18};
19
20} // namespace ina2xx_i2c
21} // namespace esphome
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
Definition i2c.h:153
bool read_ina_register(uint8_t reg, uint8_t *data, size_t len) override
bool write_ina_register(uint8_t reg, const uint8_t *data, size_t len) override
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
std::string size_t len
Definition helpers.h:301