STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Functions | |
static uint32_t | SD_InitCard (SD_HandleTypeDef *hsd) |
Initializes the sd card. | |
static uint32_t | 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 uint32_t | SD_SendSDStatus (SD_HandleTypeDef *hsd, uint32_t *pSDstatus) |
Send Status info command. | |
static uint32_t | SD_SendStatus (SD_HandleTypeDef *hsd, uint32_t *pCardStatus) |
Returns the current card's status. | |
static uint32_t | SD_WideBus_Enable (SD_HandleTypeDef *hsd) |
Enables the SDIO wide bus mode. | |
static uint32_t | SD_WideBus_Disable (SD_HandleTypeDef *hsd) |
Disables the SDIO wide bus mode. | |
static uint32_t | SD_FindSCR (SD_HandleTypeDef *hsd, uint32_t *pSCR) |
Finds the SD card SCR register value. | |
static void | SD_PowerOFF (SD_HandleTypeDef *hsd) |
Turns the SDIO output signals off. | |
static void | SD_Write_IT (SD_HandleTypeDef *hsd) |
Wrap up writing in non-blocking mode. | |
static void | SD_Read_IT (SD_HandleTypeDef *hsd) |
Wrap up reading in non-blocking mode. | |
static void | SD_DMATransmitCplt (DMA_HandleTypeDef *hdma) |
DMA SD transmit process complete callback. | |
static void | SD_DMAReceiveCplt (DMA_HandleTypeDef *hdma) |
DMA SD receive process complete callback. | |
static void | SD_DMAError (DMA_HandleTypeDef *hdma) |
DMA SD communication error callback. | |
static void | SD_DMATxAbort (DMA_HandleTypeDef *hdma) |
DMA SD Tx Abort callback. | |
static void | SD_DMARxAbort (DMA_HandleTypeDef *hdma) |
DMA SD Rx Abort callback. | |
|
static |
#include <stm32f4xx_hal_sd.c>
Initializes the sd card.
hsd | Pointer to SD handle |
SD | Card error state |
Definition at line 2678 of file stm32f4xx_hal_sd.c.
References CARD_SECURED, HAL_SD_CardInfoTypeDef::CardType, SD_HandleTypeDef::CID, HAL_SD_CardInfoTypeDef::Class, SD_HandleTypeDef::CSD, HAL_OK, HAL_SD_ERROR_NONE, HAL_SD_ERROR_REQUEST_NOT_APPLICABLE, HAL_SD_ERROR_UNSUPPORTED_FEATURE, HAL_SD_GetCardCSD(), SD_HandleTypeDef::Init, SD_HandleTypeDef::Instance, HAL_SD_CardInfoTypeDef::RelCardAdd, and SD_HandleTypeDef::SdCard.
Referenced by HAL_SD_InitCard().
|
static |
#include <stm32f4xx_hal_sd.c>
Enquires cards about their operating voltage and configures clock controls and stores SD information that will be needed in future in the SD handle.
hsd | Pointer to SD handle |
error | state |
Definition at line 2770 of file stm32f4xx_hal_sd.c.
References CARD_SDHC_SDXC, CARD_SDSC, CARD_V1_X, CARD_V2_X, HAL_SD_CardInfoTypeDef::CardType, HAL_SD_CardInfoTypeDef::CardVersion, HAL_SD_ERROR_INVALID_VOLTRANGE, HAL_SD_ERROR_NONE, HAL_SD_ERROR_UNSUPPORTED_FEATURE, SD_HandleTypeDef::Instance, and SD_HandleTypeDef::SdCard.
Referenced by HAL_SD_InitCard().
|
static |
#include <stm32f4xx_hal_sd.c>
Send Status info command.
hsd | pointer to SD handle |
pSDstatus | Pointer to the buffer that will contain the SD card status SD Status register) |
error | state |
Definition at line 2873 of file stm32f4xx_hal_sd.c.
References __HAL_SD_CLEAR_FLAG, __HAL_SD_GET_FLAG, SD_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_SD_ERROR_DATA_CRC_FAIL, HAL_SD_ERROR_DATA_TIMEOUT, HAL_SD_ERROR_LOCK_UNLOCK_FAILED, HAL_SD_ERROR_NONE, HAL_SD_ERROR_RX_OVERRUN, HAL_SD_ERROR_TIMEOUT, SD_HandleTypeDef::Instance, HAL_SD_CardInfoTypeDef::RelCardAdd, and SD_HandleTypeDef::SdCard.
Referenced by HAL_SD_GetCardStatus().
|
static |
#include <stm32f4xx_hal_sd.c>
Returns the current card's status.
hsd | Pointer to SD handle |
pCardStatus | pointer to the buffer that will contain the SD card status (Card Status register) |
error | state |
Definition at line 2983 of file stm32f4xx_hal_sd.c.
References HAL_SD_ERROR_NONE, HAL_SD_ERROR_PARAM, SD_HandleTypeDef::Instance, HAL_SD_CardInfoTypeDef::RelCardAdd, and SD_HandleTypeDef::SdCard.
Referenced by HAL_SD_GetCardState().
|
static |
#include <stm32f4xx_hal_sd.c>
Enables the SDIO wide bus mode.
hsd | pointer to SD handle |
error | state |
Definition at line 3010 of file stm32f4xx_hal_sd.c.
References HAL_SD_ERROR_LOCK_UNLOCK_FAILED, HAL_SD_ERROR_NONE, HAL_SD_ERROR_REQUEST_NOT_APPLICABLE, SD_HandleTypeDef::Instance, HAL_SD_CardInfoTypeDef::RelCardAdd, SD_FindSCR(), and SD_HandleTypeDef::SdCard.
Referenced by HAL_SD_ConfigWideBusOperation().
|
static |
#include <stm32f4xx_hal_sd.c>
Disables the SDIO wide bus mode.
hsd | Pointer to SD handle |
error | state |
Definition at line 3057 of file stm32f4xx_hal_sd.c.
References HAL_SD_ERROR_LOCK_UNLOCK_FAILED, HAL_SD_ERROR_NONE, HAL_SD_ERROR_REQUEST_NOT_APPLICABLE, SD_HandleTypeDef::Instance, HAL_SD_CardInfoTypeDef::RelCardAdd, SD_FindSCR(), and SD_HandleTypeDef::SdCard.
Referenced by HAL_SD_ConfigWideBusOperation().
|
static |
#include <stm32f4xx_hal_sd.c>
Finds the SD card SCR register value.
hsd | Pointer to SD handle |
pSCR | pointer to the buffer that will contain the SCR value |
error | state |
Definition at line 3106 of file stm32f4xx_hal_sd.c.
References __HAL_SD_CLEAR_FLAG, __HAL_SD_GET_FLAG, HAL_GetTick(), HAL_SD_ERROR_DATA_CRC_FAIL, HAL_SD_ERROR_DATA_TIMEOUT, HAL_SD_ERROR_NONE, HAL_SD_ERROR_RX_OVERRUN, HAL_SD_ERROR_TIMEOUT, SD_HandleTypeDef::Instance, HAL_SD_CardInfoTypeDef::RelCardAdd, and SD_HandleTypeDef::SdCard.
Referenced by SD_WideBus_Disable(), and SD_WideBus_Enable().
|
static |
#include <stm32f4xx_hal_sd.c>
Turns the SDIO output signals off.
hsd | Pointer to SD handle |
None |
Definition at line 2860 of file stm32f4xx_hal_sd.c.
References SD_HandleTypeDef::Instance.
Referenced by HAL_SD_DeInit().
|
static |
#include <stm32f4xx_hal_sd.c>
Wrap up writing in non-blocking mode.
hsd | pointer to a SD_HandleTypeDef structure that contains the configuration information. |
None |
Definition at line 3246 of file stm32f4xx_hal_sd.c.
References SD_HandleTypeDef::Instance, SD_HandleTypeDef::pTxBuffPtr, and SD_HandleTypeDef::TxXferSize.
Referenced by HAL_SD_IRQHandler().
|
static |
#include <stm32f4xx_hal_sd.c>
Wrap up reading in non-blocking mode.
hsd | pointer to a SD_HandleTypeDef structure that contains the configuration information. |
None |
Definition at line 3207 of file stm32f4xx_hal_sd.c.
References SD_HandleTypeDef::Instance, SD_HandleTypeDef::pRxBuffPtr, and SD_HandleTypeDef::RxXferSize.
Referenced by HAL_SD_IRQHandler().
|
static |
#include <stm32f4xx_hal_sd.c>
DMA SD transmit process complete callback.
hdma | DMA handle |
None |
Definition at line 2501 of file stm32f4xx_hal_sd.c.
References __HAL_SD_ENABLE_IT, and __DMA_HandleTypeDef::Parent.
Referenced by HAL_SD_WriteBlocks_DMA().
|
static |
#include <stm32f4xx_hal_sd.c>
DMA SD receive process complete callback.
hdma | DMA handle |
None |
Definition at line 2514 of file stm32f4xx_hal_sd.c.
References __HAL_SD_CLEAR_FLAG, SD_HandleTypeDef::Context, SD_HandleTypeDef::ErrorCode, HAL_SD_ERROR_NONE, HAL_SD_ErrorCallback(), HAL_SD_RxCpltCallback(), HAL_SD_STATE_READY, SD_HandleTypeDef::Instance, __DMA_HandleTypeDef::Parent, SD_CONTEXT_DMA, SD_CONTEXT_NONE, SD_CONTEXT_READ_MULTIPLE_BLOCK, and SD_HandleTypeDef::State.
Referenced by HAL_SD_ReadBlocks_DMA().
|
static |
#include <stm32f4xx_hal_sd.c>
DMA SD communication error callback.
hdma | DMA handle |
None |
Definition at line 2556 of file stm32f4xx_hal_sd.c.
References __HAL_SD_CLEAR_FLAG, __HAL_SD_DISABLE_IT, SD_HandleTypeDef::Context, __DMA_HandleTypeDef::ErrorCode, SD_HandleTypeDef::ErrorCode, HAL_DMA_ERROR_FE, HAL_DMA_ERROR_TE, HAL_DMA_GetError(), HAL_SD_CARD_RECEIVING, HAL_SD_CARD_SENDING, HAL_SD_ERROR_DMA, HAL_SD_ErrorCallback(), HAL_SD_GetCardState(), HAL_SD_STATE_READY, SD_HandleTypeDef::hdmarx, SD_HandleTypeDef::hdmatx, SD_HandleTypeDef::Instance, __DMA_HandleTypeDef::Parent, SD_CONTEXT_NONE, and SD_HandleTypeDef::State.
Referenced by HAL_SD_ReadBlocks_DMA(), and HAL_SD_WriteBlocks_DMA().
|
static |
#include <stm32f4xx_hal_sd.c>
DMA SD Tx Abort callback.
hdma | DMA handle |
None |
Definition at line 2600 of file stm32f4xx_hal_sd.c.
References __HAL_SD_CLEAR_FLAG, SD_HandleTypeDef::Context, SD_HandleTypeDef::ErrorCode, HAL_SD_AbortCallback(), HAL_SD_CARD_RECEIVING, HAL_SD_CARD_SENDING, HAL_SD_ERROR_NONE, HAL_SD_ErrorCallback(), HAL_SD_GetCardState(), HAL_SD_STATE_READY, SD_HandleTypeDef::Instance, __DMA_HandleTypeDef::Parent, SD_CONTEXT_NONE, and SD_HandleTypeDef::State.
Referenced by HAL_SD_Abort_IT(), and HAL_SD_IRQHandler().
|
static |
#include <stm32f4xx_hal_sd.c>
DMA SD Rx Abort callback.
hdma | DMA handle |
None |
Definition at line 2639 of file stm32f4xx_hal_sd.c.
References __HAL_SD_CLEAR_FLAG, SD_HandleTypeDef::Context, SD_HandleTypeDef::ErrorCode, HAL_SD_AbortCallback(), HAL_SD_CARD_RECEIVING, HAL_SD_CARD_SENDING, HAL_SD_ERROR_NONE, HAL_SD_ErrorCallback(), HAL_SD_GetCardState(), HAL_SD_STATE_READY, SD_HandleTypeDef::Instance, __DMA_HandleTypeDef::Parent, SD_CONTEXT_NONE, and SD_HandleTypeDef::State.
Referenced by HAL_SD_Abort_IT(), and HAL_SD_IRQHandler().