|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
Interface for SPI bus access. More...
#include <radio_interface.h>
Public Member Functions | |
| virtual | ~SpiAccess ()=default |
| virtual void | spi_enable ()=0 |
| Enable the SPI bus (assert CS low). | |
| virtual void | spi_disable ()=0 |
| Disable the SPI bus (deassert CS). | |
| virtual uint8_t | spi_transfer (uint8_t data)=0 |
| Transfer one byte full‑duplex (MOSI→MISO). | |
| virtual void | spi_write (uint8_t data)=0 |
| Write one byte (MOSI only, MISO ignored). | |
| virtual uint8_t | spi_read ()=0 |
| Read one byte (MISO only, MOSI driven with 0). | |
Interface for SPI bus access.
The ESPHome component implements this by delegating to its SPIDevice methods, allowing radio drivers to perform SPI transactions without depending on the ESPHome SPI framework directly.
Definition at line 26 of file radio_interface.h.
|
virtualdefault |
|
pure virtual |
Disable the SPI bus (deassert CS).
Implemented in esphome::home_io_control::IOHomeControlComponent.
|
pure virtual |
Enable the SPI bus (assert CS low).
Implemented in esphome::home_io_control::IOHomeControlComponent.
|
pure virtual |
Read one byte (MISO only, MOSI driven with 0).
Implemented in esphome::home_io_control::IOHomeControlComponent.
|
pure virtual |
Transfer one byte full‑duplex (MOSI→MISO).
| data | Byte to send. |
Implemented in esphome::home_io_control::IOHomeControlComponent.
|
pure virtual |
Write one byte (MOSI only, MISO ignored).
| data | Byte to send. |
Implemented in esphome::home_io_control::IOHomeControlComponent.