ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
bmp3xx_spi.h
Go to the documentation of this file.
1#pragma once
4
5namespace esphome::bmp3xx_spi {
6
8 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW,
9 spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_1MHZ> {
10 void setup() override;
11 bool read_byte(uint8_t a_register, uint8_t *data) override;
12 bool write_byte(uint8_t a_register, uint8_t data) override;
13 bool read_bytes(uint8_t a_register, uint8_t *data, size_t len) override;
14 bool write_bytes(uint8_t a_register, uint8_t *data, size_t len) override;
15};
16
17} // namespace esphome::bmp3xx_spi
This class implements support for the BMP3XX Temperature+Pressure sensor.
Definition bmp3xx_base.h:71
The SPIDevice is what components using the SPI will create.
Definition spi.h:429
std::string size_t len