ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
lis2dw12_spi.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::lis2dw12_spi {
7
9 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH,
10 spi::CLOCK_PHASE_TRAILING, spi::DATA_RATE_1MHZ> {
11 public:
12 void setup() override;
13 void dump_config() override;
14 bool write_byte(uint8_t a_register, uint8_t data) override;
15 bool read_bytes(uint8_t a_register, uint8_t *data, size_t len) override;
16};
17
18} // namespace esphome::lis2dw12_spi
bool write_byte(uint8_t a_register, uint8_t data) override
bool read_bytes(uint8_t a_register, uint8_t *data, size_t len) override
The SPIDevice is what components using the SPI will create.
Definition spi.h:450
const void size_t len
Definition hal.h:68