STM32H735xx HAL User Manual
|
Initialization and de-initialization functions. More...
Functions | |
HAL_StatusTypeDef | HAL_SD_Init (SD_HandleTypeDef *hsd) |
Initializes the SD according to the specified parameters in the SD_HandleTypeDef and create the associated handle. | |
HAL_StatusTypeDef | HAL_SD_InitCard (SD_HandleTypeDef *hsd) |
Initializes the SD Card. | |
HAL_StatusTypeDef | HAL_SD_DeInit (SD_HandleTypeDef *hsd) |
De-Initializes the SD card. | |
__weak void | HAL_SD_MspInit (SD_HandleTypeDef *hsd) |
Initializes the SD MSP. | |
__weak void | HAL_SD_MspDeInit (SD_HandleTypeDef *hsd) |
De-Initialize SD MSP. |
Initialization and de-initialization functions.
============================================================================== ##### Initialization and de-initialization functions ##### ============================================================================== [..] This section provides functions allowing to initialize/de-initialize the SD card device to be ready for use.
HAL_StatusTypeDef HAL_SD_DeInit | ( | SD_HandleTypeDef * | hsd | ) |
De-Initializes the SD card.
hsd,: | Pointer to SD handle |
HAL | status |
Definition at line 552 of file stm32h7xx_hal_sd.c.
References assert_param, __SD_HandleTypeDef::ErrorCode, HAL_SD_ERROR_NONE, HAL_SD_MspDeInit(), HAL_SD_STATE_BUSY, HAL_SD_STATE_RESET, __SD_HandleTypeDef::Init, __SD_HandleTypeDef::Instance, __SD_HandleTypeDef::MspDeInitCallback, SD_PowerOFF(), and __SD_HandleTypeDef::State.
HAL_StatusTypeDef HAL_SD_Init | ( | SD_HandleTypeDef * | hsd | ) |
Initializes the SD according to the specified parameters in the SD_HandleTypeDef and create the associated handle.
hsd,: | Pointer to the SD handle |
HAL | status |
Definition at line 338 of file stm32h7xx_hal_sd.c.
References __SD_HandleTypeDef::AbortCpltCallback, assert_param, CARD_HIGH_SPEED, CARD_NORMAL_SPEED, CARD_SDHC_SDXC, CARD_ULTRA_HIGH_SPEED, HAL_SD_CardInfoTypeDef::CardSpeed, HAL_SD_CardInfoTypeDef::CardType, __SD_HandleTypeDef::Context, __SD_HandleTypeDef::ErrorCallback, __SD_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_SD_AbortCallback(), HAL_SD_CARD_TRANSFER, HAL_SD_ConfigWideBusOperation(), HAL_SD_ERROR_NONE, HAL_SD_ERROR_TIMEOUT, HAL_SD_ErrorCallback(), HAL_SD_GetCardState(), HAL_SD_GetCardStatus(), HAL_SD_InitCard(), HAL_SD_MspInit(), HAL_SD_RxCpltCallback(), HAL_SD_STATE_PROGRAMMING, HAL_SD_STATE_READY, HAL_SD_STATE_RESET, HAL_SD_TxCpltCallback(), HAL_SDEx_Read_DMADoubleBuf0CpltCallback(), HAL_SDEx_Read_DMADoubleBuf1CpltCallback(), HAL_SDEx_Write_DMADoubleBuf0CpltCallback(), HAL_SDEx_Write_DMADoubleBuf1CpltCallback(), __SD_HandleTypeDef::Init, __SD_HandleTypeDef::Instance, __SD_HandleTypeDef::Lock, __SD_HandleTypeDef::MspInitCallback, __SD_HandleTypeDef::Read_DMADblBuf0CpltCallback, __SD_HandleTypeDef::Read_DMADblBuf1CpltCallback, __SD_HandleTypeDef::RxCpltCallback, SD_CONTEXT_NONE, __SD_HandleTypeDef::SdCard, __SD_HandleTypeDef::State, __SD_HandleTypeDef::TxCpltCallback, HAL_SD_CardStatusTypeDef::UhsAllocationUnitSize, HAL_SD_CardStatusTypeDef::UhsSpeedGrade, __SD_HandleTypeDef::Write_DMADblBuf0CpltCallback, and __SD_HandleTypeDef::Write_DMADblBuf1CpltCallback.
HAL_StatusTypeDef HAL_SD_InitCard | ( | SD_HandleTypeDef * | hsd | ) |
Initializes the SD Card.
hsd,: | Pointer to SD handle |
HAL | status |
Definition at line 469 of file stm32h7xx_hal_sd.c.
References __HAL_SD_CLEAR_FLAG, BLOCKSIZE, __SD_HandleTypeDef::ErrorCode, HAL_Delay(), HAL_RCCEx_GetPeriphCLKFreq(), HAL_SD_ERROR_NONE, HAL_SD_STATE_READY, __SD_HandleTypeDef::Init, __SAI_HandleTypeDef::Init, __SD_HandleTypeDef::Instance, RCC_PERIPHCLK_SDMMC, SD_INIT_FREQ, SD_InitCard(), SD_InitTypeDef, SD_PowerON(), and __SD_HandleTypeDef::State.
Referenced by HAL_SD_Init().
void HAL_SD_MspDeInit | ( | SD_HandleTypeDef * | hsd | ) |
De-Initialize SD MSP.
hsd,: | Pointer to SD handle |
None |
Definition at line 624 of file stm32h7xx_hal_sd.c.
Referenced by HAL_SD_DeInit(), and HAL_SD_UnRegisterCallback().
void HAL_SD_MspInit | ( | SD_HandleTypeDef * | hsd | ) |
Initializes the SD MSP.
hsd,: | Pointer to SD handle |
None |
Definition at line 609 of file stm32h7xx_hal_sd.c.
Referenced by HAL_SD_Init(), and HAL_SD_UnRegisterCallback().