Espressif ESP32-S2 Programming Manual page 404

Table of Contents

Advertisement

Chapter 2. API Reference
size_t trans_len
For RX direction, it indicates the data actually received. For TX direction, it is meaningless.
void *arg
Extra argument indiciating this data.
struct spi_slave_hd_event_t
Information of SPI Slave HD event.
Public Members
spi_event_t
event
Event type.
spi_slave_hd_data_t
Corresponding transaction for SPI_EV_SEND and SPI_EV_RECV events.
struct spi_slave_hd_callback_config_t
Callback configuration structure for SPI Slave HD.
Public Members
slave_cb_t
cb_buffer_tx
Callback when master reads from shared buffer.
slave_cb_t
cb_buffer_rx
Callback when master writes to shared buffer.
slave_cb_t
cb_send_dma_ready
Callback when TX data buffer is loaded to the hardware (DMA)
slave_cb_t
cb_sent
Callback when data are sent.
slave_cb_t
cb_recv_dma_ready
Callback when RX data buffer is loaded to the hardware (DMA)
slave_cb_t
cb_recv
Callback when data are received.
slave_cb_t
cb_cmd9
Callback when CMD9 received.
slave_cb_t
cb_cmdA
Callback when CMDA received.
void *arg
Argument indicating this SPI Slave HD peripheral instance.
struct spi_slave_hd_slot_config_t
Configuration structure for the SPI Slave HD driver.
Public Members
uint8_t mode
SPI mode, representing a pair of (CPOL, CPHA) configuration:
• 0: (0, 0)
• 1: (0, 1)
• 2: (1, 0)
• 3: (1, 1)
uint32_t spics_io_num
CS GPIO pin for this device.
Espressif Systems
*trans
Submit Document Feedback
393
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Table of Contents

Save PDF