Loading...
Searching...
No Matches
sdmmc_conf_t Struct Reference

SDMMC slot configuration. More...

Detailed Description

SDMMC slot configuration.

If the ESP32x variant uses the GPIO matrix to route the SDMMC signals to arbitrary pins (i.e. SOC_SDMMC_USE_GPIO_MATRIX is defined in SoC capabilities file), the pins must be configured. The bus width is then determined from the defined pins. Define the pins for the DAT lines as GPIO_UNDEF to use a smaller data bus width. If the ESP32x variant uses direct I/O (i.e. SOC_SDMMC_USE_IOMUX is defined in SoC capabilities file), the bus width has to be specified instead.

Definition at line 704 of file periph_cpu.h.

#include <periph_cpu.h>

Data Fields

sdmmc_slot_t slot
 SDMMC slot used [ SDMMC_SLOT_0 | SDMMC_SLOT_1].
 
gpio_t cd
 Card Detect pin (must be GPIO_UNDEF if not connected)
 
gpio_t wp
 Write Protect pin (must be GPIO_UNDEF if not connected)
 
gpio_t clk
 CLK pin (must be defined)
 
gpio_t cmd
 CMD pin (must be defined)
 
gpio_t dat0
 DAT[0] pin (must be defined)
 
gpio_t dat1
 DAT[1] pin (GPIO_UNDEF if not connected)
 
gpio_t dat2
 DAT[2] pin (GPIO_UNDEF if not connected)
 
gpio_t dat3
 DAT[3] pin (GPIO_UNDEF if not connected)
 
gpio_t dat4
 DAT[4] pin (GPIO_UNDEF if not connected)
 
gpio_t dat5
 DAT[5] pin (GPIO_UNDEF if not connected)
 
gpio_t dat6
 DAT[6] pin (GPIO_UNDEF if not connected)
 
gpio_t dat7
 DAT[7] pin (GPIO_UNDEF if not connected)
 

Field Documentation

◆ cd

gpio_t sdmmc_conf_t::cd

Card Detect pin (must be GPIO_UNDEF if not connected)

Definition at line 706 of file periph_cpu.h.

◆ clk

gpio_t sdmmc_conf_t::clk

CLK pin (must be defined)

Definition at line 709 of file periph_cpu.h.

◆ cmd

gpio_t sdmmc_conf_t::cmd

CMD pin (must be defined)

Definition at line 710 of file periph_cpu.h.

◆ dat0

gpio_t sdmmc_conf_t::dat0

DAT[0] pin (must be defined)

Definition at line 711 of file periph_cpu.h.

◆ dat1

gpio_t sdmmc_conf_t::dat1

DAT[1] pin (GPIO_UNDEF if not connected)

Definition at line 712 of file periph_cpu.h.

◆ dat2

gpio_t sdmmc_conf_t::dat2

DAT[2] pin (GPIO_UNDEF if not connected)

Definition at line 713 of file periph_cpu.h.

◆ dat3

gpio_t sdmmc_conf_t::dat3

DAT[3] pin (GPIO_UNDEF if not connected)

Definition at line 714 of file periph_cpu.h.

◆ dat4

gpio_t sdmmc_conf_t::dat4

DAT[4] pin (GPIO_UNDEF if not connected)

Definition at line 716 of file periph_cpu.h.

◆ dat5

gpio_t sdmmc_conf_t::dat5

DAT[5] pin (GPIO_UNDEF if not connected)

Definition at line 717 of file periph_cpu.h.

◆ dat6

gpio_t sdmmc_conf_t::dat6

DAT[6] pin (GPIO_UNDEF if not connected)

Definition at line 718 of file periph_cpu.h.

◆ dat7

gpio_t sdmmc_conf_t::dat7

DAT[7] pin (GPIO_UNDEF if not connected)

Definition at line 719 of file periph_cpu.h.

◆ slot

sdmmc_slot_t sdmmc_conf_t::slot

SDMMC slot used [ SDMMC_SLOT_0 | SDMMC_SLOT_1].

Definition at line 705 of file periph_cpu.h.

◆ wp

gpio_t sdmmc_conf_t::wp

Write Protect pin (must be GPIO_UNDEF if not connected)

Definition at line 707 of file periph_cpu.h.


The documentation for this struct was generated from the following file: