7 static const char *
const TAG =
"as3935_spi";
10 ESP_LOGI(TAG,
"SPIAS3935Component setup started!");
12 ESP_LOGI(TAG,
"SPI setup finished!");
17 AS3935Component::dump_config();
18 LOG_PIN(
" CS Pin: ", this->
cs_);
25 write_reg |= (bits << start_pos);
43 ESP_LOGV(TAG,
"read_register_: %d", value);
virtual void digital_write(bool value)=0
void dump_config() override
void spi_setup() override
void write_byte(uint8_t data)
uint8_t read_register(uint8_t reg) override
void write_register(uint8_t reg, uint8_t mask, uint8_t bits, uint8_t start_position) override
Implementation of SPI Controller mode.