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

#include <spi_zephyr.h>

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

Public Member Functions

 ZephyrSPIBus (const device *dev)
 
bool is_hw () override
 
SPIDelegate * get_delegate (uint32_t data_rate, SPIBitOrder bit_order, SPIMode mode, GPIOPin *cs_pin, bool release_device, bool write_only) override
 
- Public Member Functions inherited from esphome::spi::SPIBus
 SPIBus ()=default
 
 SPIBus (GPIOPin *clk, GPIOPin *sdo, GPIOPin *sdi)
 

Protected Attributes

const device * dev_
 
const ZephyrSPIDelegate * active_ {nullptr}
 
spi_config idle_cfg_ {}
 
- Protected Attributes inherited from esphome::spi::SPIBus
GPIOPin * clk_pin_ {}
 
GPIOPin * sdo_pin_ {}
 
GPIOPin * sdi_pin_ {}
 

Static Protected Attributes

static constexpr uint32_t IDLE_FREQUENCY = 125000
 

Detailed Description

Definition at line 12 of file spi_zephyr.h.

Constructor & Destructor Documentation

◆ ZephyrSPIBus()

esphome::spi::ZephyrSPIBus::ZephyrSPIBus ( const device * dev)
inlineexplicit

Definition at line 16 of file spi_zephyr.h.

Member Function Documentation

◆ get_delegate()

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

Reimplemented from esphome::spi::SPIBus.

Definition at line 29 of file spi_zephyr.cpp.

◆ is_hw()

bool esphome::spi::ZephyrSPIBus::is_hw ( )
inlineoverridevirtual

Reimplemented from esphome::spi::SPIBus.

Definition at line 21 of file spi_zephyr.h.

Field Documentation

◆ active_

const ZephyrSPIDelegate* esphome::spi::ZephyrSPIBus::active_ {nullptr}
protected

Definition at line 32 of file spi_zephyr.h.

◆ dev_

const device* esphome::spi::ZephyrSPIBus::dev_
protected

Definition at line 30 of file spi_zephyr.h.

◆ idle_cfg_

spi_config esphome::spi::ZephyrSPIBus::idle_cfg_ {}
protected

Definition at line 34 of file spi_zephyr.h.

◆ IDLE_FREQUENCY

uint32_t esphome::spi::ZephyrSPIBus::IDLE_FREQUENCY = 125000
staticconstexprprotected

Definition at line 28 of file spi_zephyr.h.


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