EasyManua.ls Logo

Espressif ESP32-S2 - Page 382

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents