ESPHome  2024.12.2
ina2xx_i2c.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace 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
bool read_ina_register(uint8_t reg, uint8_t *data, size_t len) override
Definition: ina2xx_i2c.cpp:23
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
Definition: i2c.h:149
bool write_ina_register(uint8_t reg, const uint8_t *data, size_t len) override
Definition: ina2xx_i2c.cpp:31
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