37 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW,
38 spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_1MHZ> {
46 void setup()
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 ...
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 WeikaiComponentSPI class stores the information to the WeiKai component connected through an SPI ...
void dump_config() override
weikai::WeikaiRegister & reg(uint8_t reg, uint8_t channel) override
WeikaiRegisterSPI reg_spi_
init to this component
WeikaiRegisterSPI objects acts as proxies to access remote register through an SPI Bus.
WeikaiRegisterSPI(weikai::WeikaiComponent *const comp, uint8_t reg, uint8_t channel)
void write_reg(uint8_t value) override
uint8_t read_reg() const override
void write_fifo(uint8_t *data, size_t length) 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.