ESPHome
2024.11.0
|
WeikaiRegisterI2C objects acts as proxies to access remote register through an I2C Bus. More...
#include <weikai_i2c.h>
Public Member Functions | |
uint8_t | read_reg () const override |
void | write_reg (uint8_t value) override |
void | read_fifo (uint8_t *data, size_t length) const override |
void | write_fifo (uint8_t *data, size_t length) override |
Public Member Functions inherited from esphome::weikai::WeikaiRegister | |
WeikaiRegister (WeikaiComponent *const comp, uint8_t reg, uint8_t channel) | |
WeikaiRegister constructor. More... | |
virtual | ~WeikaiRegister () |
WeikaiRegister & | operator= (uint8_t value) |
overloads the = operator. More... | |
WeikaiRegister & | operator &= (uint8_t value) |
overloads the compound &= operator. More... | |
WeikaiRegister & | operator|= (uint8_t value) |
overloads the compound |= operator. More... | |
operator uint8_t () const | |
cast operator that returns the content of the weikai register More... | |
Protected Member Functions | |
WeikaiRegisterI2C (weikai::WeikaiComponent *const comp, uint8_t reg, uint8_t channel) | |
Protected Attributes | |
friend | WeikaiComponentI2C |
Additional Inherited Members | |
Data Fields inherited from esphome::weikai::WeikaiRegister | |
WeikaiComponent *const | comp_ |
pointer to our parent (aggregation) More... | |
uint8_t | register_ |
address of the register More... | |
uint8_t | channel_ |
channel for this register More... | |
WeikaiRegisterI2C objects acts as proxies to access remote register through an I2C Bus.
Definition at line 25 of file weikai_i2c.h.
|
inlineprotected |
Definition at line 34 of file weikai_i2c.h.
|
overridevirtual |
Implements esphome::weikai::WeikaiRegister.
Definition at line 85 of file weikai_i2c.cpp.
|
overridevirtual |
Implements esphome::weikai::WeikaiRegister.
Definition at line 67 of file weikai_i2c.cpp.
|
overridevirtual |
Implements esphome::weikai::WeikaiRegister.
Definition at line 120 of file weikai_i2c.cpp.
|
overridevirtual |
Implements esphome::weikai::WeikaiRegister.
Definition at line 104 of file weikai_i2c.cpp.
|
protected |
Definition at line 33 of file weikai_i2c.h.