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.
Functions | |
| static void | SD_DMA_RxCplt (DMA_HandleTypeDef *hdma) |
| SD DMA transfer complete Rx callback. | |
| static void | SD_DMA_RxError (DMA_HandleTypeDef *hdma) |
| SD DMA transfer Error Rx callback. | |
| static void | SD_DMA_TxCplt (DMA_HandleTypeDef *hdma) |
| SD DMA transfer complete Tx callback. | |
| static void | SD_DMA_TxError (DMA_HandleTypeDef *hdma) |
| SD DMA transfer Error Tx callback. | |
| static HAL_SD_CardStateTypedef | SD_GetState (SD_HandleTypeDef *hsd) |
| Returns the SD current state. | |
| static HAL_SD_ErrorTypedef | SD_Initialize_Cards (SD_HandleTypeDef *hsd) |
| Initializes all cards or single card as the case may be Card(s) come into standby state. | |
| static HAL_SD_ErrorTypedef | SD_Select_Deselect (SD_HandleTypeDef *hsd, uint64_t addr) |
| Selects or Deselects the corresponding card. | |
| static HAL_SD_ErrorTypedef | SD_PowerON (SD_HandleTypeDef *hsd) |
| Enquires cards about their operating voltage and configures clock controls and stores SD information that will be needed in future in the SD handle. | |
| static HAL_SD_ErrorTypedef | SD_PowerOFF (SD_HandleTypeDef *hsd) |
| Turns the SDMMC output signals off. | |
| static HAL_SD_ErrorTypedef | SD_SendStatus (SD_HandleTypeDef *hsd, uint32_t *pCardStatus) |
| Returns the current card's status. | |
| static HAL_SD_ErrorTypedef | SD_CmdError (SD_HandleTypeDef *hsd) |
| Checks for error conditions for CMD0. | |
| static HAL_SD_ErrorTypedef | SD_CmdResp7Error (SD_HandleTypeDef *hsd) |
| Checks for error conditions for R7 response. | |
| static HAL_SD_ErrorTypedef | SD_CmdResp1Error (SD_HandleTypeDef *hsd, uint8_t SD_CMD) |
| Checks for error conditions for R1 response. | |
| static HAL_SD_ErrorTypedef | SD_CmdResp3Error (SD_HandleTypeDef *hsd) |
| Checks for error conditions for R3 (OCR) response. | |
| static HAL_SD_ErrorTypedef | SD_CmdResp2Error (SD_HandleTypeDef *hsd) |
| Checks for error conditions for R2 (CID or CSD) response. | |
| static HAL_SD_ErrorTypedef | SD_CmdResp6Error (SD_HandleTypeDef *hsd, uint8_t SD_CMD, uint16_t *pRCA) |
| Checks for error conditions for R6 (RCA) response. | |
| static HAL_SD_ErrorTypedef | SD_WideBus_Enable (SD_HandleTypeDef *hsd) |
| Enables the SDMMC wide bus mode. | |
| static HAL_SD_ErrorTypedef | SD_WideBus_Disable (SD_HandleTypeDef *hsd) |
| Disables the SDMMC wide bus mode. | |
| static HAL_SD_ErrorTypedef | SD_FindSCR (SD_HandleTypeDef *hsd, uint32_t *pSCR) |
| Finds the SD card SCR register value. | |
| static HAL_SD_ErrorTypedef | SD_IsCardProgramming (SD_HandleTypeDef *hsd, uint8_t *pStatus) |
| Checks if the SD card is in programming state. | |
Function Documentation
| static HAL_SD_ErrorTypedef SD_CmdError | ( | SD_HandleTypeDef * | hsd ) | [static] |
Checks for error conditions for CMD0.
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD Card error state
Definition at line 2592 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_CmdResp1Error | ( | SD_HandleTypeDef * | hsd, |
| uint8_t | SD_CMD | ||
| ) | [static] |
Checks for error conditions for R1 response.
- Parameters:
-
hsd,: SD handle SD_CMD,: The sent command index
- Return values:
-
SD Card error state
Definition at line 2668 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_CmdResp2Error | ( | SD_HandleTypeDef * | hsd ) | [static] |
Checks for error conditions for R2 (CID or CSD) response.
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD Card error state
Definition at line 2844 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_CmdResp3Error | ( | SD_HandleTypeDef * | hsd ) | [static] |
Checks for error conditions for R3 (OCR) response.
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD Card error state
Definition at line 2816 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_CmdResp6Error | ( | SD_HandleTypeDef * | hsd, |
| uint8_t | SD_CMD, | ||
| uint16_t * | pRCA | ||
| ) | [static] |
Checks for error conditions for R6 (RCA) response.
- Parameters:
-
hsd,: SD handle SD_CMD,: The sent command index pRCA,: Pointer to the variable that will contain the SD card relative address RCA
- Return values:
-
SD Card error state
Definition at line 2887 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_CmdResp7Error | ( | SD_HandleTypeDef * | hsd ) | [static] |
Checks for error conditions for R7 response.
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD Card error state
Definition at line 2624 of file stm32l4xx_hal_sd.c.
| static void SD_DMA_RxCplt | ( | DMA_HandleTypeDef * | hdma ) | [static] |
SD DMA transfer complete Rx callback.
- Parameters:
-
hdma,: pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
- Return values:
-
None
Definition at line 2180 of file stm32l4xx_hal_sd.c.
| static void SD_DMA_RxError | ( | DMA_HandleTypeDef * | hdma ) | [static] |
SD DMA transfer Error Rx callback.
- Parameters:
-
hdma,: pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
- Return values:
-
None
Definition at line 2205 of file stm32l4xx_hal_sd.c.
| static void SD_DMA_TxCplt | ( | DMA_HandleTypeDef * | hdma ) | [static] |
SD DMA transfer complete Tx callback.
- Parameters:
-
hdma,: pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
- Return values:
-
None
Definition at line 2219 of file stm32l4xx_hal_sd.c.
| static void SD_DMA_TxError | ( | DMA_HandleTypeDef * | hdma ) | [static] |
SD DMA transfer Error Tx callback.
- Parameters:
-
hdma,: pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
- Return values:
-
None
Definition at line 2244 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_FindSCR | ( | SD_HandleTypeDef * | hsd, |
| uint32_t * | pSCR | ||
| ) | [static] |
Finds the SD card SCR register value.
- Parameters:
-
hsd,: SD handle pSCR,: pointer to the buffer that will contain the SCR value
- Return values:
-
SD Card error state
Definition at line 3101 of file stm32l4xx_hal_sd.c.
| static HAL_SD_CardStateTypedef SD_GetState | ( | SD_HandleTypeDef * | hsd ) | [static] |
Returns the SD current state.
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD card current state
Definition at line 2257 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_Initialize_Cards | ( | SD_HandleTypeDef * | hsd ) | [static] |
Initializes all cards or single card as the case may be Card(s) come into standby state.
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD Card error state
Definition at line 2277 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_IsCardProgramming | ( | SD_HandleTypeDef * | hsd, |
| uint8_t * | pStatus | ||
| ) | [static] |
Checks if the SD card is in programming state.
- Parameters:
-
hsd,: SD handle pStatus,: pointer to the variable that will contain the SD card state
- Return values:
-
SD Card error state
Definition at line 3215 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_PowerOFF | ( | SD_HandleTypeDef * | hsd ) | [static] |
Turns the SDMMC output signals off.
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD Card error state
Definition at line 2536 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_PowerON | ( | SD_HandleTypeDef * | hsd ) | [static] |
Enquires cards about their operating voltage and configures clock controls and stores SD information that will be needed in future in the SD handle.
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD Card error state
Definition at line 2395 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_Select_Deselect | ( | SD_HandleTypeDef * | hsd, |
| uint64_t | addr | ||
| ) | [static] |
Selects or Deselects the corresponding card.
- Parameters:
-
hsd,: SD handle addr,: Address of the card to be selected
- Return values:
-
SD Card error state
Definition at line 2369 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_SendStatus | ( | SD_HandleTypeDef * | hsd, |
| uint32_t * | pCardStatus | ||
| ) | [static] |
Returns the current card's status.
- Parameters:
-
hsd,: SD handle pCardStatus,: pointer to the buffer that will contain the SD card status (Card Status register)
- Return values:
-
SD Card error state
Definition at line 2553 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_WideBus_Disable | ( | SD_HandleTypeDef * | hsd ) | [static] |
Disables the SDMMC wide bus mode.
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD Card error state
Definition at line 3030 of file stm32l4xx_hal_sd.c.
| static HAL_SD_ErrorTypedef SD_WideBus_Enable | ( | SD_HandleTypeDef * | hsd ) | [static] |
Enables the SDMMC wide bus mode.
- Parameters:
-
hsd,: SD handle
- Return values:
-
SD Card error state
Definition at line 2961 of file stm32l4xx_hal_sd.c.
Generated on Tue Jul 12 2022 10:58:19 by
1.7.2