ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
ina2xx_spi.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::ina2xx_spi {
8
10 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_TRAILING,
11 spi::DATA_RATE_1MHZ> {
12 public:
13 void setup() override;
14 void dump_config() override;
15
16 protected:
17 bool read_ina_register(uint8_t reg, uint8_t *data, size_t len) override;
18 bool write_ina_register(uint8_t reg, const uint8_t *data, size_t len) override;
19};
20} // namespace esphome::ina2xx_spi
bool write_ina_register(uint8_t reg, const uint8_t *data, size_t len) override
bool read_ina_register(uint8_t reg, uint8_t *data, size_t len) override
The SPIDevice is what components using the SPI will create.
Definition spi.h:429
const void size_t len
Definition hal.h:64