17 namespace weikai_spi {
29 void write_fifo(uint8_t *data,
size_t length)
override;
37 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW,
38 spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_1MHZ> {
42 reg_spi_.channel_ = channel;
46 void setup()
override;
47 void dump_config()
override;
WeikaiRegisterSPI(weikai::WeikaiComponent *const comp, uint8_t reg, uint8_t channel)
void write_fifo(uint8_t *data, size_t length) override
The WeikaiComponentSPI class stores the information to the WeiKai component connected through an SPI ...
void write_reg(uint8_t value) override
The SPIDevice is what components using the SPI will create.
The WeikaiComponent class stores the information global to the WeiKai component and provides methods ...
WeikaiRegisterSPI objects acts as proxies to access remote register through an SPI Bus...
WeiKai component family - classes declaration.
WeikaiRegister objects acts as proxies to access remote register independently of the bus type...
void read_fifo(uint8_t *data, size_t length) const override
uint8_t register_
address of the register
Implementation of SPI Controller mode.
weikai::WeikaiRegister & reg(uint8_t reg, uint8_t channel) override
uint8_t read_reg() const override