ESPHome  2024.6.1
Public Member Functions
esphome::spi::SPIDelegateDummy Class Reference

A dummy SPIDelegate that complains if it's used. More...

#include <spi.h>

Inheritance diagram for esphome::spi::SPIDelegateDummy:

Public Member Functions

 SPIDelegateDummy ()=default
uint8_t transfer (uint8_t data) override
void end_transaction () override
void begin_transaction () override
- Public Member Functions inherited from esphome::spi::SPIDelegate
 SPIDelegate ()=default
 SPIDelegate (uint32_t data_rate, SPIBitOrder bit_order, SPIMode mode, GPIOPin *cs_pin)
virtual ~SPIDelegate ()
virtual void transfer (uint8_t *ptr, size_t length)
virtual void transfer (const uint8_t *txbuf, uint8_t *rxbuf, size_t length)
virtual void write (uint16_t data, size_t num_bits)
 write a variable length data item, up to 16 bits. More...
virtual void write_cmd_addr_data (size_t cmd_bits, uint32_t cmd, size_t addr_bits, uint32_t address, const uint8_t *data, size_t length, uint8_t bus_width)
virtual void write16 (uint16_t data)
virtual void write_array16 (const uint16_t *data, size_t length)
virtual void write_array (const uint8_t *ptr, size_t length)
virtual void read_array (uint8_t *ptr, size_t length)
virtual bool is_ready ()

Additional Inherited Members

- Protected Attributes inherited from esphome::spi::SPIDelegate
SPIBitOrder bit_order_ {BIT_ORDER_MSB_FIRST}
uint32_t data_rate_ {1000000}
SPIMode mode_ {MODE0}
GPIOPincs_pin_ {NullPin::NULL_PIN}
- Static Protected Attributes inherited from esphome::spi::SPIDelegate
static SPIDelegate *const NULL_DELEGATE

Detailed Description

A dummy SPIDelegate that complains if it's used.

Definition at line 260 of file spi.h.

Constructor & Destructor Documentation

◆ SPIDelegateDummy()

esphome::spi::SPIDelegateDummy::SPIDelegateDummy ( )

Member Function Documentation

◆ begin_transaction()

void esphome::spi::SPIDelegateDummy::begin_transaction ( )

Reimplemented from esphome::spi::SPIDelegate.

Definition at line 82 of file spi.cpp.

◆ end_transaction()

void esphome::spi::SPIDelegateDummy::end_transaction ( )

Reimplemented from esphome::spi::SPIDelegate.

Definition at line 265 of file spi.h.

◆ transfer()

uint8_t esphome::spi::SPIDelegateDummy::transfer ( uint8_t  data)

Implements esphome::spi::SPIDelegate.

Definition at line 264 of file spi.h.

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