Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Peripheral Control functions
[SDMMC Low Layer Exported Functions]
management functions More...
Functions | |
HAL_StatusTypeDef | SDMMC_PowerState_ON (SDMMC_TypeDef *SDMMCx) |
Set SDMMC Power state to ON. | |
HAL_StatusTypeDef | SDMMC_PowerState_OFF (SDMMC_TypeDef *SDMMCx) |
Set SDMMC Power state to OFF. | |
uint32_t | SDMMC_GetPowerState (SDMMC_TypeDef *SDMMCx) |
Get SDMMC Power state. | |
HAL_StatusTypeDef | SDMMC_SendCommand (SDMMC_TypeDef *SDMMCx, SDMMC_CmdInitTypeDef *Command) |
Configure the SDMMC command path according to the specified parameters in SDMMC_CmdInitTypeDef structure and send the command. | |
uint8_t | SDMMC_GetCommandResponse (SDMMC_TypeDef *SDMMCx) |
Return the command index of last command for which response received. | |
uint32_t | SDMMC_GetResponse (SDMMC_TypeDef *SDMMCx, uint32_t Response) |
Return the response received from the card for the last command. | |
HAL_StatusTypeDef | SDMMC_DataConfig (SDMMC_TypeDef *SDMMCx, SDMMC_DataInitTypeDef *Data) |
Configure the SDMMC data path according to the specified parameters in the SDMMC_DataInitTypeDef. | |
uint32_t | SDMMC_GetDataCounter (SDMMC_TypeDef *SDMMCx) |
Returns number of remaining data bytes to be transferred. | |
uint32_t | SDMMC_GetFIFOCount (SDMMC_TypeDef *SDMMCx) |
Get the FIFO data. | |
HAL_StatusTypeDef | SDMMC_SetSDMMCReadWaitMode (SDMMC_TypeDef *SDMMCx, uint32_t SDMMC_ReadWaitMode) |
Sets one of the two options of inserting read wait interval. |
Detailed Description
management functions
=============================================================================== ##### Peripheral Control functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to control the SDMMC data transfers.
Function Documentation
HAL_StatusTypeDef SDMMC_DataConfig | ( | SDMMC_TypeDef * | SDMMCx, |
SDMMC_DataInitTypeDef * | Data | ||
) |
Configure the SDMMC data path according to the specified parameters in the SDMMC_DataInitTypeDef.
- Parameters:
-
SDMMCx,: Pointer to SDMMC register base Data : pointer to a SDMMC_DataInitTypeDef structure that contains the configuration information for the SDMMC data.
- Return values:
-
HAL status
Definition at line 414 of file stm32l4xx_ll_sdmmc.c.
uint8_t SDMMC_GetCommandResponse | ( | SDMMC_TypeDef * | SDMMCx ) |
Return the command index of last command for which response received.
- Parameters:
-
SDMMCx,: Pointer to SDMMC register base
- Return values:
-
Command index of the last command response received
Definition at line 376 of file stm32l4xx_ll_sdmmc.c.
uint32_t SDMMC_GetDataCounter | ( | SDMMC_TypeDef * | SDMMCx ) |
Returns number of remaining data bytes to be transferred.
- Parameters:
-
SDMMCx,: Pointer to SDMMC register base
- Return values:
-
Number of remaining data bytes to be transferred
Definition at line 445 of file stm32l4xx_ll_sdmmc.c.
uint32_t SDMMC_GetFIFOCount | ( | SDMMC_TypeDef * | SDMMCx ) |
Get the FIFO data.
- Parameters:
-
SDMMCx,: Pointer to SDMMC register base
- Return values:
-
Data received
Definition at line 455 of file stm32l4xx_ll_sdmmc.c.
uint32_t SDMMC_GetPowerState | ( | SDMMC_TypeDef * | SDMMCx ) |
Get SDMMC Power state.
- Parameters:
-
SDMMCx,: 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 337 of file stm32l4xx_ll_sdmmc.c.
uint32_t SDMMC_GetResponse | ( | SDMMC_TypeDef * | SDMMCx, |
uint32_t | Response | ||
) |
Return the response received from the card for the last command.
- Parameters:
-
SDMMCx,: Pointer to SDMMC register base Response,: Specifies the SDMMC response register. This parameter can be one of the following values: - SDMMC_RESP1: Response Register 1
- SDMMC_RESP2: Response Register 2
- SDMMC_RESP3: Response Register 3
- SDMMC_RESP4: Response Register 4
- Return values:
-
The Corresponding response register value
Definition at line 393 of file stm32l4xx_ll_sdmmc.c.
HAL_StatusTypeDef SDMMC_PowerState_OFF | ( | SDMMC_TypeDef * | SDMMCx ) |
Set SDMMC Power state to OFF.
- Parameters:
-
SDMMCx,: Pointer to SDMMC register base
- Return values:
-
HAL status
Definition at line 320 of file stm32l4xx_ll_sdmmc.c.
HAL_StatusTypeDef SDMMC_PowerState_ON | ( | SDMMC_TypeDef * | SDMMCx ) |
Set SDMMC Power state to ON.
- Parameters:
-
SDMMCx,: Pointer to SDMMC register base
- Return values:
-
HAL status
Definition at line 307 of file stm32l4xx_ll_sdmmc.c.
HAL_StatusTypeDef SDMMC_SendCommand | ( | SDMMC_TypeDef * | SDMMCx, |
SDMMC_CmdInitTypeDef * | Command | ||
) |
Configure the SDMMC command path according to the specified parameters in SDMMC_CmdInitTypeDef structure and send the command.
- Parameters:
-
SDMMCx,: Pointer to SDMMC register base Command,: pointer to a SDMMC_CmdInitTypeDef structure that contains the configuration information for the SDMMC command
- Return values:
-
HAL status
Definition at line 350 of file stm32l4xx_ll_sdmmc.c.
HAL_StatusTypeDef SDMMC_SetSDMMCReadWaitMode | ( | SDMMC_TypeDef * | SDMMCx, |
uint32_t | SDMMC_ReadWaitMode | ||
) |
Sets one of the two options of inserting read wait interval.
- Parameters:
-
SDMMCx,: Pointer to SDMMC register base SDMMC_ReadWaitMode,: SDMMC Read Wait operation mode. This parameter can be: - SDMMC_READ_WAIT_MODE_CLK: Read Wait control by stopping SDMMCCLK
- SDMMC_READ_WAIT_MODE_DATA2: Read Wait control using SDMMC_DATA2
- Return values:
-
None
Definition at line 470 of file stm32l4xx_ll_sdmmc.c.
Generated on Tue Jul 12 2022 18:10:50 by
