ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::spi::SPIBus Class Reference

#include <spi.h>

Inheritance diagram for esphome::spi::SPIBus:
esphome::spi::ZephyrSPIBus

Public Member Functions

 SPIBus ()=default
 
 SPIBus (GPIOPin *clk, GPIOPin *sdo, GPIOPin *sdi)
 
virtual SPIDelegate * get_delegate (uint32_t data_rate, SPIBitOrder bit_order, SPIMode mode, GPIOPin *cs_pin, bool release_device, bool write_only)
 
virtual bool is_hw ()
 

Protected Attributes

GPIOPin * clk_pin_ {}
 
GPIOPin * sdo_pin_ {}
 
GPIOPin * sdi_pin_ {}
 

Detailed Description

Definition at line 329 of file spi.h.

Constructor & Destructor Documentation

◆ SPIBus() [1/2]

esphome::spi::SPIBus::SPIBus ( )
default

◆ SPIBus() [2/2]

esphome::spi::SPIBus::SPIBus ( GPIOPin * clk,
GPIOPin * sdo,
GPIOPin * sdi )
inline

Definition at line 333 of file spi.h.

Member Function Documentation

◆ get_delegate()

virtual SPIDelegate * esphome::spi::SPIBus::get_delegate ( uint32_t data_rate,
SPIBitOrder bit_order,
SPIMode mode,
GPIOPin * cs_pin,
bool release_device,
bool write_only )
inlinevirtual

Reimplemented in esphome::spi::ZephyrSPIBus.

Definition at line 335 of file spi.h.

◆ is_hw()

virtual bool esphome::spi::SPIBus::is_hw ( )
inlinevirtual

Reimplemented in esphome::spi::ZephyrSPIBus.

Definition at line 340 of file spi.h.

Field Documentation

◆ clk_pin_

GPIOPin* esphome::spi::SPIBus::clk_pin_ {}
protected

Definition at line 343 of file spi.h.

◆ sdi_pin_

GPIOPin* esphome::spi::SPIBus::sdi_pin_ {}
protected

Definition at line 345 of file spi.h.

◆ sdo_pin_

GPIOPin* esphome::spi::SPIBus::sdo_pin_ {}
protected

Definition at line 344 of file spi.h.


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