Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
esphome::home_io_control::SpiAccess Class Referenceabstract

Interface for SPI bus access. More...

#include <radio_interface.h>

Inheritance diagram for esphome::home_io_control::SpiAccess:
Collaboration diagram for esphome::home_io_control::SpiAccess:

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).

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~SpiAccess()

virtual esphome::home_io_control::SpiAccess::~SpiAccess ( )
virtualdefault

Member Function Documentation

◆ spi_disable()

virtual void esphome::home_io_control::SpiAccess::spi_disable ( )
pure virtual

Disable the SPI bus (deassert CS).

Implemented in esphome::home_io_control::IOHomeControlComponent.

◆ spi_enable()

virtual void esphome::home_io_control::SpiAccess::spi_enable ( )
pure virtual

Enable the SPI bus (assert CS low).

Implemented in esphome::home_io_control::IOHomeControlComponent.

◆ spi_read()

virtual uint8_t esphome::home_io_control::SpiAccess::spi_read ( )
pure virtual

Read one byte (MISO only, MOSI driven with 0).

Returns
Byte received.

Implemented in esphome::home_io_control::IOHomeControlComponent.

◆ spi_transfer()

virtual uint8_t esphome::home_io_control::SpiAccess::spi_transfer ( uint8_t data)
pure virtual

Transfer one byte full‑duplex (MOSI→MISO).

Parameters
dataByte to send.
Returns
Byte received from MISO.

Implemented in esphome::home_io_control::IOHomeControlComponent.

◆ spi_write()

virtual void esphome::home_io_control::SpiAccess::spi_write ( uint8_t data)
pure virtual

Write one byte (MOSI only, MISO ignored).

Parameters
dataByte to send.

Implemented in esphome::home_io_control::IOHomeControlComponent.


The documentation for this class was generated from the following file: