management functions
More...
management functions
===============================================================================
##### Peripheral Control functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to control the SDMMC data
transfers.
◆ SDIO_ConfigData()
Configure the SDMMC data path according to the specified parameters in the SDIO_DataInitTypeDef.
- Parameters
-
SDIOx | Pointer to SDIO register base
|
Data | : pointer to a SDIO_DataInitTypeDef structure that contains the configuration information for the SDMMC data. |
- Return values
-
Definition at line 415 of file stm32f4xx_ll_sdmmc.c.
◆ SDIO_GetCommandResponse()
uint8_t SDIO_GetCommandResponse |
( |
SDIO_TypeDef * |
SDIOx | ) |
|
Return the command index of last command for which response received.
- Parameters
-
SDIOx | Pointer to SDMMC register base |
- Return values
-
Command | index of the last command response received |
Definition at line 377 of file stm32f4xx_ll_sdmmc.c.
◆ SDIO_GetDataCounter()
uint32_t SDIO_GetDataCounter |
( |
SDIO_TypeDef * |
SDIOx | ) |
|
Returns number of remaining data bytes to be transferred.
- Parameters
-
SDIOx | Pointer to SDIO register base |
- Return values
-
Number | of remaining data bytes to be transferred |
Definition at line 450 of file stm32f4xx_ll_sdmmc.c.
◆ SDIO_GetFIFOCount()
uint32_t SDIO_GetFIFOCount |
( |
SDIO_TypeDef * |
SDIOx | ) |
|
Get the FIFO data.
- Parameters
-
SDIOx | Pointer to SDIO register base |
- Return values
-
Definition at line 460 of file stm32f4xx_ll_sdmmc.c.
◆ SDIO_GetPowerState()
uint32_t SDIO_GetPowerState |
( |
SDIO_TypeDef * |
SDIOx | ) |
|
Get SDMMC Power state.
- Parameters
-
SDIOx | Pointer to SDMMC register base |
- Return values
-
Power | status of the controller. The returned value can be one of the following values:
- 0x00: Power OFF
- 0x02: Power UP
- 0x03: Power ON
|
Definition at line 334 of file stm32f4xx_ll_sdmmc.c.
◆ SDIO_GetResponse()
uint32_t SDIO_GetResponse |
( |
SDIO_TypeDef * |
SDIOx, |
|
|
uint32_t |
Response |
|
) |
| |
Return the response received from the card for the last command.
- Parameters
-
SDIOx | Pointer to SDMMC register base
|
Response | Specifies the SDMMC response register. This parameter can be one of the following values:
- SDIO_RESP1: Response Register 1
- SDIO_RESP2: Response Register 2
- SDIO_RESP3: Response Register 3
- SDIO_RESP4: Response Register 4
|
- Return values
-
The | Corresponding response register value |
Definition at line 394 of file stm32f4xx_ll_sdmmc.c.
◆ SDIO_PowerState_OFF()
HAL_StatusTypeDef SDIO_PowerState_OFF |
( |
SDIO_TypeDef * |
SDIOx | ) |
|
Set SDMMC Power state to OFF.
- Parameters
-
SDIOx | Pointer to SDMMC register base |
- Return values
-
Definition at line 317 of file stm32f4xx_ll_sdmmc.c.
◆ SDIO_PowerState_ON()
HAL_StatusTypeDef SDIO_PowerState_ON |
( |
SDIO_TypeDef * |
SDIOx | ) |
|
Set SDMMC Power state to ON.
- Parameters
-
SDIOx | Pointer to SDMMC register base |
- Return values
-
Definition at line 304 of file stm32f4xx_ll_sdmmc.c.
◆ SDIO_SendCommand()
Configure the SDMMC command path according to the specified parameters in SDIO_CmdInitTypeDef structure and send the command.
- Parameters
-
SDIOx | Pointer to SDMMC register base |
Command | pointer to a SDIO_CmdInitTypeDef structure that contains the configuration information for the SDMMC command |
- Return values
-
Definition at line 347 of file stm32f4xx_ll_sdmmc.c.
◆ SDIO_SetSDMMCReadWaitMode()
HAL_StatusTypeDef SDIO_SetSDMMCReadWaitMode |
( |
SDIO_TypeDef * |
SDIOx, |
|
|
uint32_t |
SDIO_ReadWaitMode |
|
) |
| |
Sets one of the two options of inserting read wait interval.
- Parameters
-
SDIOx | Pointer to SDIO register base
|
SDIO_ReadWaitMode | SDMMC Read Wait operation mode. This parameter can be:
- SDIO_READ_WAIT_MODE_CLK: Read Wait control by stopping SDMMCCLK
- SDIO_READ_WAIT_MODE_DATA2: Read Wait control using SDMMC_DATA2
|
- Return values
-
Definition at line 474 of file stm32f4xx_ll_sdmmc.c.