ESPHome  2024.12.2
ade7953_i2c.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "esphome/core/hal.h"
8 
9 #include <vector>
10 
11 namespace esphome {
12 namespace ade7953_i2c {
13 
15  public:
16  void dump_config() override;
17 
18  protected:
19  bool ade_write_8(uint16_t reg, uint8_t value) override;
20  bool ade_write_16(uint16_t reg, uint16_t value) override;
21  bool ade_write_32(uint16_t reg, uint32_t value) override;
22  bool ade_read_8(uint16_t reg, uint8_t *value) override;
23  bool ade_read_16(uint16_t reg, uint16_t *value) override;
24  bool ade_read_32(uint16_t reg, uint32_t *value) override;
25 };
26 
27 } // namespace ade7953_i2c
28 } // namespace esphome
bool ade_read_32(uint16_t reg, uint32_t *value) override
Definition: ade7953_i2c.cpp:64
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
Definition: i2c.h:149
bool ade_read_8(uint16_t reg, uint8_t *value) override
Definition: ade7953_i2c.cpp:40
bool ade_write_32(uint16_t reg, uint32_t value) override
Definition: ade7953_i2c.cpp:30
bool ade_write_8(uint16_t reg, uint8_t value) override
Definition: ade7953_i2c.cpp:15
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
bool ade_read_16(uint16_t reg, uint16_t *value) override
Definition: ade7953_i2c.cpp:50
bool ade_write_16(uint16_t reg, uint16_t value) override
Definition: ade7953_i2c.cpp:22
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133