HAL SDIO Overview ¶
Introducing SDIO ¶
- group SDIO_Introduction
-
The SDIO Hardware Abstraction Layer provides a high-level interface to the STM32 SDMMC peripheral for communicating with Secure Digital Input Output (SDIO) cards.
This HAL driver is built on top of the SDMMC core layer and simplifies peripheral initialization, device identification, configuration, and transition to the transfer state.
It supports the main data operations required by I/O applications, including direct and extended read/write transfers, function control, I/O interrupt management, and access to device status, configuration, and common or function-specific register information.
The driver supports polling and DMA transfer modes for data exchanges, allowing the application to balance CPU load, throughput, and responsiveness.
It also provides services to manage device insertion and removal events, configure transfer timing and, when available, FIFO threshold parameters.
This abstraction layer improves portability across STM32 devices embedding the SDMMC peripheral and eases the integration of SDIO-based peripherals into embedded applications.
Module and files ¶
The following diagram illustrates the SDIO module and its associated files.
Component diagram ¶
The following diagram illustrates the software components involved in the SDIO module. It shows the interactions between the user application, HAL drivers, low-level drivers, and the hardware components.
Configuration table ¶
The following table lists the configuration defines for the HAL SDIO module, specifying their locations, default values, and descriptions:
- group SDIO_Configuration_Table
-
¶
Configuration inside the SDIO driver ¶
Config defines
Description
Default value
Note
USE_ASSERT_DBG_PARAM
from the IDE
NONE
Allows to use the assert checks parameters.
USE_ASSERT_DBG_STATE
from the IDE
NONE
Allows to use the assert checks states.
USE_HAL_CHECK_PARAM
from hal_conf.h
0
Allows to use the run-time checks parameters.
USE_HAL_SDIO_REGISTER_CALLBACKS
from hal_conf.h
0
Allows to provide specific callback functions.
USE_HAL_SDIO_GET_LAST_ERRORS
from hal_conf.h
0
Allows to get last errors codes.
USE_HAL_SDIO_USER_DATA
from hal_conf.h
0
Allows to enable/disable user data.
USE_HAL_SDIO_CLK_ENABLE_MODEL
from hal_conf.h
HAL_CLK_ENABLE_NO
Allows to enable the clock model for the SDIO.