17 namespace weikai_i2c {
19 class WeikaiComponentI2C;
30 void write_fifo(uint8_t *data,
size_t length)
override;
46 reg_i2c_.channel_ = channel;
53 void setup()
override;
54 void dump_config()
override;
WeikaiRegisterI2C(weikai::WeikaiComponent *const comp, uint8_t reg, uint8_t channel)
uint8_t read_reg() const override
uint8_t base_address_
base address of I2C device
weikai::WeikaiRegister & reg(uint8_t reg, uint8_t channel) override
void write_reg(uint8_t value) override
The WeikaiComponent class stores the information global to the WeiKai component and provides methods ...
The WeikaiComponentI2C class stores the information to the WeiKai component connected through an I2C ...
WeiKai component family - classes declaration.
friend WeikaiComponentI2C
void write_fifo(uint8_t *data, size_t length) override
WeikaiRegisterI2C objects acts as proxies to access remote register through an I2C Bus...
WeikaiRegister objects acts as proxies to access remote register independently of the bus type...
uint8_t register_
address of the register
Implementation of SPI Controller mode.
void read_fifo(uint8_t *data, size_t length) const override
This Class provides the methods to read/write bytes from/to an i2c device.