#include <spi.h>
|
| SPIDelegate ()=default |
|
| SPIDelegate (uint32_t data_rate, SPIBitOrder bit_order, SPIMode mode, GPIOPin *cs_pin) |
|
virtual | ~SPIDelegate () |
|
virtual void | begin_transaction () |
|
virtual void | end_transaction () |
|
virtual uint8_t | transfer (uint8_t data)=0 |
|
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 () |
|
Definition at line 168 of file spi.h.
◆ SPIDelegate() [1/2]
esphome::spi::SPIDelegate::SPIDelegate |
( |
| ) |
|
|
default |
◆ SPIDelegate() [2/2]
◆ ~SPIDelegate()
virtual esphome::spi::SPIDelegate::~SPIDelegate |
( |
| ) |
|
|
inlinevirtual |
◆ begin_transaction()
virtual void esphome::spi::SPIDelegate::begin_transaction |
( |
| ) |
|
|
inlinevirtual |
◆ end_transaction()
virtual void esphome::spi::SPIDelegate::end_transaction |
( |
| ) |
|
|
inlinevirtual |
◆ is_ready()
bool esphome::spi::SPIDelegate::is_ready |
( |
| ) |
|
|
virtual |
◆ read_array()
virtual void esphome::spi::SPIDelegate::read_array |
( |
uint8_t * |
ptr, |
|
|
size_t |
length |
|
) |
| |
|
inlinevirtual |
◆ transfer() [1/3]
virtual uint8_t esphome::spi::SPIDelegate::transfer |
( |
uint8_t |
data | ) |
|
|
pure virtual |
◆ transfer() [2/3]
virtual void esphome::spi::SPIDelegate::transfer |
( |
uint8_t * |
ptr, |
|
|
size_t |
length |
|
) |
| |
|
inlinevirtual |
◆ transfer() [3/3]
virtual void esphome::spi::SPIDelegate::transfer |
( |
const uint8_t * |
txbuf, |
|
|
uint8_t * |
rxbuf, |
|
|
size_t |
length |
|
) |
| |
|
inlinevirtual |
◆ write()
virtual void esphome::spi::SPIDelegate::write |
( |
uint16_t |
data, |
|
|
size_t |
num_bits |
|
) |
| |
|
inlinevirtual |
write a variable length data item, up to 16 bits.
- Parameters
-
data | The data to send. Should be LSB-aligned (i.e. top bits will be discarded.) |
num_bits | The number of bits to send |
Reimplemented in esphome::spi::SPIDelegateBitBash.
Definition at line 206 of file spi.h.
◆ write16()
virtual void esphome::spi::SPIDelegate::write16 |
( |
uint16_t |
data | ) |
|
|
inlinevirtual |
◆ write_array()
virtual void esphome::spi::SPIDelegate::write_array |
( |
const uint8_t * |
ptr, |
|
|
size_t |
length |
|
) |
| |
|
inlinevirtual |
◆ write_array16()
virtual void esphome::spi::SPIDelegate::write_array16 |
( |
const uint16_t * |
data, |
|
|
size_t |
length |
|
) |
| |
|
inlinevirtual |
◆ write_cmd_addr_data()
virtual void esphome::spi::SPIDelegate::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 |
|
) |
| |
|
inlinevirtual |
◆ bit_order_
◆ cs_pin_
◆ data_rate_
uint32_t esphome::spi::SPIDelegate::data_rate_ {1000000} |
|
protected |
◆ mode_
The documentation for this class was generated from the following files:
- /opt/build/esphome/esphome/components/spi/spi.h
- /opt/build/esphome/esphome/components/spi/spi.cpp