ESPHome  2024.4.1
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 308 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 312 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 314 of file spi.h.

◆ is_hw()

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

Definition at line 318 of file spi.h.

Field Documentation

◆ clk_pin_

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

Definition at line 321 of file spi.h.

◆ sdi_pin_

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

Definition at line 323 of file spi.h.

◆ sdo_pin_

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

Definition at line 322 of file spi.h.


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