Espressif ESP32-S2 Programming Manual page 382

Table of Contents

Advertisement

Chapter 2. API Reference
Structures
struct spi_line_mode_t
Line mode of SPI transaction phases: CMD, ADDR, DOUT/DIN.
Public Members
uint8_t cmd_lines
The line width of command phase, e.g. 2-line-cmd-phase.
uint8_t addr_lines
The line width of address phase, e.g. 1-line-addr-phase.
uint8_t data_lines
The line width of data phase, e.g. 4-line-data-phase.
Enumerations
enum spi_host_device_t
Enum with the three SPI peripherals that are software-accessible in it.
Values:
SPI1_HOST = 0
SPI1.
SPI2_HOST = 1
SPI2.
SPI3_HOST = 2
SPI3.
enum spi_event_t
SPI Events.
Values:
SPI_EV_BUF_TX = BIT(0)
The buffer has sent data to master.
SPI_EV_BUF_RX = BIT(1)
The buffer has received data from master.
SPI_EV_SEND_DMA_READY = BIT(2)
Slave has loaded its TX data buffer to the hardware (DMA).
SPI_EV_SEND = BIT(3)
Master has received certain number of the data, the number is determined by Master.
SPI_EV_RECV_DMA_READY = BIT(4)
Slave has loaded its RX data buffer to the hardware (DMA).
SPI_EV_RECV = BIT(5)
Slave has received certain number of data from master, the number is determined by Master.
SPI_EV_CMD9 = BIT(6)
Received CMD9 from master.
SPI_EV_CMDA = BIT(7)
Received CMDA from master.
SPI_EV_TRANS = BIT(8)
A transaction has done.
Header File
components/driver/include/driver/spi_common.h
Espressif Systems
371
Submit Document Feedback
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?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF