EasyManuals Logo

Espressif ESP32-S2 User Manual

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
Page #371 background imageLoading...
Page #371 background image
Chapter 2. API Reference
esp_err_t sdspi_host_init_slot(int slot, const sdspi_slot_config_t *slot_config)
Initialize SD SPI driver for the specific SPI controller.
Note This function is not thread safe
Note The SDIO over sdspi needs an extra interrupt line. Call gpio_install_isr_service() before
this function.
Parameters
slot: SPI controller to use (SPI2_HOST or SPI3_HOST)
slot_config: pointer to slot configuration structure
Return
ESP_OK on success
ESP_ERR_INVALID_ARG if sdspi_init_slot has invalid arguments
ESP_ERR_NO_MEM if memory can not be allocated
other errors from the underlying spi_master and gpio drivers
Structures
struct sdspi_device_config_t
Extra configuration for SD SPI device.
Public Members
spi_host_device_t host_id
SPI host to use, SPIx_HOST (see spi_types.h).
gpio_num_t gpio_cs
GPIO number of CS signal.
gpio_num_t gpio_cd
GPIO number of card detect signal.
gpio_num_t gpio_wp
GPIO number of write protect signal.
gpio_num_t gpio_int
GPIO number of interrupt line (input) for SDIO card.
struct sdspi_slot_config_t
Extra configuration for SPI host.
Public Members
gpio_num_t gpio_cs
GPIO number of CS signal.
gpio_num_t gpio_cd
GPIO number of card detect signal.
gpio_num_t gpio_wp
GPIO number of write protect signal.
gpio_num_t gpio_int
GPIO number of interrupt line (input) for SDIO card.
gpio_num_t gpio_miso
GPIO number of MISO signal.
gpio_num_t gpio_mosi
GPIO number of MOSI signal.
gpio_num_t gpio_sck
GPIO number of SCK signal.
Espressif Systems 360
Submit Document Feedback
Release v4.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Espressif ESP32-S2 Specifications

General IconGeneral
BrandEspressif
ModelESP32-S2
CategorySingle board computers
LanguageEnglish