L4 HAL Drivers
SD_Exported_Functions_Group3
[SD_Exported_Functions]
management functions More...
Functions | |
HAL_SD_ErrorTypedef | HAL_SD_Get_CardInfo (SD_HandleTypeDef *hsd, HAL_SD_CardInfoTypedef *pCardInfo) |
Returns information about specific card. | |
HAL_SD_ErrorTypedef | HAL_SD_WideBusOperation_Config (SD_HandleTypeDef *hsd, uint32_t WideMode) |
Enables wide bus operation for the requested card if supported by card. | |
HAL_SD_ErrorTypedef | HAL_SD_StopTransfer (SD_HandleTypeDef *hsd) |
Aborts an ongoing data transfer. | |
HAL_SD_ErrorTypedef | HAL_SD_HighSpeed (SD_HandleTypeDef *hsd) |
Switches the SD card to High Speed mode. |
Detailed Description
management functions
============================================================================== ##### Peripheral Control functions ##### ============================================================================== [..] This subsection provides a set of functions allowing to control the SD card operations.
Function Documentation
HAL_SD_ErrorTypedef HAL_SD_Get_CardInfo | ( | SD_HandleTypeDef * | hsd, |
HAL_SD_CardInfoTypedef * | pCardInfo | ||
) |
Returns information about specific card.
- Parameters:
-
hsd,: SD handle pCardInfo,: Pointer to a HAL_SD_CardInfoTypedef structure that contains all SD cardinformation
- Return values:
-
SD Card error state
< Reserved
Definition at line 1476 of file stm32l4xx_hal_sd.c.
HAL_SD_ErrorTypedef HAL_SD_HighSpeed | ( | SD_HandleTypeDef * | hsd ) |
Switches the SD card to High Speed mode.
This API must be used after "Transfer State"
- Note:
- This operation should be followed by the configuration of PLL to have SDMMCCK clock between 67 and 75 MHz
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD Card error state
Definition at line 1773 of file stm32l4xx_hal_sd.c.
HAL_SD_ErrorTypedef HAL_SD_StopTransfer | ( | SD_HandleTypeDef * | hsd ) |
Aborts an ongoing data transfer.
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD Card error state
Definition at line 1746 of file stm32l4xx_hal_sd.c.
HAL_SD_ErrorTypedef HAL_SD_WideBusOperation_Config | ( | SD_HandleTypeDef * | hsd, |
uint32_t | WideMode | ||
) |
Enables wide bus operation for the requested card if supported by card.
- Parameters:
-
hsd,: SD handle WideMode,: Specifies the SD card wide bus mode This parameter can be one of the following values: - SDMMC_BUS_WIDE_8B: 8-bit data transfer (Only for MMC)
- SDMMC_BUS_WIDE_4B: 4-bit data transfer
- SDMMC_BUS_WIDE_1B: 1-bit data transfer
- Return values:
-
SD Card error state
Definition at line 1692 of file stm32l4xx_hal_sd.c.
Generated on Tue Jul 12 2022 10:58:19 by 1.7.2