ESPHome
2024.12.2
|
WeikaiRegisterSPI objects acts as proxies to access remote register through an SPI Bus. More...
#include <weikai_spi.h>
Public Member Functions | |
WeikaiRegisterSPI (weikai::WeikaiComponent *const comp, uint8_t reg, uint8_t channel) | |
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... | |
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... | |
WeikaiRegisterSPI objects acts as proxies to access remote register through an SPI Bus.
Definition at line 21 of file weikai_spi.h.
|
inline |
Definition at line 23 of file weikai_spi.h.
|
overridevirtual |
Implements esphome::weikai::WeikaiRegister.
Definition at line 115 of file weikai_spi.cpp.
|
overridevirtual |
Implements esphome::weikai::WeikaiRegister.
Definition at line 103 of file weikai_spi.cpp.
|
overridevirtual |
Implements esphome::weikai::WeikaiRegister.
Definition at line 139 of file weikai_spi.cpp.
|
overridevirtual |
Implements esphome::weikai::WeikaiRegister.
Definition at line 129 of file weikai_spi.cpp.