ESPHome 2025.5.0
Loading...
Searching...
No Matches
esphome::spi::SPIBus Class Reference

#include <spi.h>

Public Member Functions

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

Protected Attributes

GPIOPinclk_pin_ {}
 
GPIOPinsdo_pin_ {}
 
GPIOPinsdi_pin_ {}
 

Detailed Description

Definition at line 314 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 318 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 )
inlinevirtual

Definition at line 320 of file spi.h.

◆ is_hw()

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

Definition at line 324 of file spi.h.

Field Documentation

◆ clk_pin_

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

Definition at line 327 of file spi.h.

◆ sdi_pin_

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

Definition at line 329 of file spi.h.

◆ sdo_pin_

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

Definition at line 328 of file spi.h.


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