ESPHome  2024.12.2
Public Member Functions
esphome::weikai_spi::WeikaiRegisterSPI Class Reference

WeikaiRegisterSPI objects acts as proxies to access remote register through an SPI Bus. More...

#include <weikai_spi.h>

Inheritance diagram for esphome::weikai_spi::WeikaiRegisterSPI:
esphome::weikai::WeikaiRegister

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 ()
 
WeikaiRegisteroperator= (uint8_t value)
 overloads the = operator. More...
 
WeikaiRegisteroperator &= (uint8_t value)
 overloads the compound &= operator. More...
 
WeikaiRegisteroperator|= (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...
 

Detailed Description

WeikaiRegisterSPI objects acts as proxies to access remote register through an SPI Bus.

Definition at line 21 of file weikai_spi.h.

Constructor & Destructor Documentation

◆ WeikaiRegisterSPI()

esphome::weikai_spi::WeikaiRegisterSPI::WeikaiRegisterSPI ( weikai::WeikaiComponent *const  comp,
uint8_t  reg,
uint8_t  channel 
)
inline

Definition at line 23 of file weikai_spi.h.

Member Function Documentation

◆ read_fifo()

void esphome::weikai_spi::WeikaiRegisterSPI::read_fifo ( uint8_t *  data,
size_t  length 
) const
overridevirtual

Implements esphome::weikai::WeikaiRegister.

Definition at line 115 of file weikai_spi.cpp.

◆ read_reg()

uint8_t esphome::weikai_spi::WeikaiRegisterSPI::read_reg ( ) const
overridevirtual

Implements esphome::weikai::WeikaiRegister.

Definition at line 103 of file weikai_spi.cpp.

◆ write_fifo()

void esphome::weikai_spi::WeikaiRegisterSPI::write_fifo ( uint8_t *  data,
size_t  length 
)
overridevirtual

Implements esphome::weikai::WeikaiRegister.

Definition at line 139 of file weikai_spi.cpp.

◆ write_reg()

void esphome::weikai_spi::WeikaiRegisterSPI::write_reg ( uint8_t  value)
overridevirtual

Implements esphome::weikai::WeikaiRegister.

Definition at line 129 of file weikai_spi.cpp.


The documentation for this class was generated from the following files: