ESPHome  2024.9.2
Public Member Functions | Protected Attributes
esphome::spi::SPIBus Class Reference

#include <spi.h>

Inherited by esphome::spi::SPIBusHw, and esphome::spi::SPIBusHw.

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 291 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 295 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 297 of file spi.h.

◆ is_hw()

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

Definition at line 301 of file spi.h.

Field Documentation

◆ clk_pin_

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

Definition at line 304 of file spi.h.

◆ sdi_pin_

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

Definition at line 306 of file spi.h.

◆ sdo_pin_

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

Definition at line 305 of file spi.h.


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