12 namespace ade7953_spi {
15 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH, spi::CLOCK_PHASE_LEADING,
16 spi::DATA_RATE_1MHZ> {
18 void setup()
override;
23 bool ade_write_8(uint16_t reg, uint8_t value)
override;
24 bool ade_write_16(uint16_t reg, uint16_t value)
override;
25 bool ade_write_32(uint16_t reg, uint32_t value)
override;
26 bool ade_read_8(uint16_t reg, uint8_t *value)
override;
27 bool ade_read_16(uint16_t reg, uint16_t *value)
override;
28 bool ade_read_32(uint16_t reg, uint32_t *value)
override;
bool ade_write_8(uint16_t reg, uint8_t value) override
The SPIDevice is what components using the SPI will create.
bool ade_write_32(uint16_t reg, uint32_t value) override
bool ade_read_8(uint16_t reg, uint8_t *value) override
bool ade_read_32(uint16_t reg, uint32_t *value) override
Implementation of SPI Controller mode.
bool ade_read_16(uint16_t reg, uint16_t *value) override
void dump_config() override
bool ade_write_16(uint16_t reg, uint16_t value) override