ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
as3935_spi.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace as3935_spi {
9
11
13 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW,
14 spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_2MHZ> {
15 public:
16 void setup() override;
17 void dump_config() override;
18
19 protected:
20 void write_register(uint8_t reg, uint8_t mask, uint8_t bits, uint8_t start_position) override;
21 uint8_t read_register(uint8_t reg) override;
22};
23
24} // namespace as3935_spi
25} // namespace esphome
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
The SPIDevice is what components using the SPI will create.
Definition spi.h:427
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7