6 namespace ade7953_spi {
8 static const char *
const TAG =
"ade7953";
16 ESP_LOGCONFIG(TAG,
"ADE7953_spi:");
17 LOG_PIN(
" CS Pin: ", this->
cs_);
bool ade_write_8(uint16_t reg, uint8_t value) override
void spi_setup() override
constexpr uint32_t encode_uint32(uint8_t byte1, uint8_t byte2, uint8_t byte3, uint8_t byte4)
Encode a 32-bit value given four bytes in most to least significant byte order.
uint8_t transfer_byte(uint8_t data)
void dump_config() override
void read_array(uint8_t *data, size_t length)
bool ade_write_32(uint16_t reg, uint32_t value) override
bool ade_read_8(uint16_t reg, uint8_t *value) override
constexpr uint16_t encode_uint16(uint8_t msb, uint8_t lsb)
Encode a 16-bit value given the most and least significant byte.
bool ade_read_32(uint16_t reg, uint32_t *value) override
Implementation of SPI Controller mode.
void write_byte16(uint16_t data)
Write 16 bit data.
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