19class WeikaiComponentI2C;
53 void setup()
override;
This Class provides the methods to read/write bytes from/to an i2c device.
The WeikaiComponent class stores the information global to the WeiKai component and provides methods ...
WeikaiRegister objects acts as proxies to access remote register independently of the bus type.
uint8_t register_
address of the register
uint8_t channel_
channel for this register
The WeikaiComponentI2C class stores the information to the WeiKai component connected through an I2C ...
weikai::WeikaiRegister & reg(uint8_t reg, uint8_t channel) override
uint8_t base_address_
base address of I2C device
void dump_config() override
WeikaiRegisterI2C reg_i2c_
init to this component
WeikaiRegisterI2C objects acts as proxies to access remote register through an I2C Bus.
void write_fifo(uint8_t *data, size_t length) override
uint8_t read_reg() const override
WeikaiRegisterI2C(weikai::WeikaiComponent *const comp, uint8_t reg, uint8_t channel)
friend WeikaiComponentI2C
void write_reg(uint8_t value) override
void read_fifo(uint8_t *data, size_t length) const override
Providing packet encoding functions for exchanging data with a remote host.
WeiKai component family - classes declaration.