ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
ens160_spi.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::ens160_spi {
7
9 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW,
10 spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_200KHZ> {
11 void setup() override;
12 void dump_config() override;
13
14 bool read_byte(uint8_t a_register, uint8_t *data) override;
15 bool write_byte(uint8_t a_register, uint8_t data) override;
16 bool read_bytes(uint8_t a_register, uint8_t *data, size_t len) override;
17 bool write_bytes(uint8_t a_register, uint8_t *data, size_t len) override;
18};
19
20} // namespace esphome::ens160_spi
The SPIDevice is what components using the SPI will create.
Definition spi.h:429
std::string size_t len