|
STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
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. | |
| void | HAL_SD_MspInit (SD_HandleTypeDef *hsd) |
| Initializes the SD MSP. | |
| 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_Init | ( | SD_HandleTypeDef * | hsd | ) |
#include <stm32f4xx_hal_sd.h>
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 335 of file stm32f4xx_hal_sd.c.
References assert_param, SD_HandleTypeDef::Context, SD_HandleTypeDef::ErrorCode, HAL_ERROR, HAL_OK, HAL_SD_AbortCallback(), HAL_SD_ERROR_NONE, HAL_SD_ErrorCallback(), HAL_SD_InitCard(), HAL_SD_MspInit(), HAL_SD_RxCpltCallback(), HAL_SD_STATE_BUSY, HAL_SD_STATE_READY, HAL_SD_STATE_RESET, HAL_SD_TxCpltCallback(), HAL_UNLOCKED, SD_HandleTypeDef::Init, SD_HandleTypeDef::Instance, SD_HandleTypeDef::Lock, SD_CONTEXT_NONE, and SD_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_SD_InitCard | ( | SD_HandleTypeDef * | hsd | ) |
#include <stm32f4xx_hal_sd.h>
Initializes the SD Card.
| hsd | Pointer to SD handle |
| HAL | status |
Definition at line 403 of file stm32f4xx_hal_sd.c.
References __HAL_SD_CLEAR_FLAG, __HAL_SD_DISABLE, __HAL_SD_ENABLE, BLOCKSIZE, SD_HandleTypeDef::ErrorCode, HAL_Delay(), HAL_ERROR, HAL_OK, HAL_SD_ERROR_NONE, HAL_SD_STATE_READY, SD_HandleTypeDef::Instance, SD_InitCard(), SD_InitTypeDef, SD_PowerON(), and SD_HandleTypeDef::State.
Referenced by HAL_SD_Init().
| HAL_StatusTypeDef HAL_SD_DeInit | ( | SD_HandleTypeDef * | hsd | ) |
#include <stm32f4xx_hal_sd.h>
De-Initializes the SD card.
| hsd | Pointer to SD handle |
| HAL | status |
Definition at line 473 of file stm32f4xx_hal_sd.c.
References assert_param, SD_HandleTypeDef::ErrorCode, HAL_ERROR, HAL_OK, HAL_SD_ERROR_NONE, HAL_SD_MspDeInit(), HAL_SD_STATE_BUSY, HAL_SD_STATE_RESET, SD_HandleTypeDef::Instance, SD_PowerOFF(), and SD_HandleTypeDef::State.
| __weak void HAL_SD_MspInit | ( | SD_HandleTypeDef * | hsd | ) |
#include <stm32f4xx_hal_sd.h>
Initializes the SD MSP.
| hsd | Pointer to SD handle |
| None |
Definition at line 514 of file stm32f4xx_hal_sd.c.
References UNUSED.
Referenced by HAL_SD_Init().
| __weak void HAL_SD_MspDeInit | ( | SD_HandleTypeDef * | hsd | ) |
#include <stm32f4xx_hal_sd.h>
De-Initialize SD MSP.
| hsd | Pointer to SD handle |
| None |
Definition at line 529 of file stm32f4xx_hal_sd.c.
References UNUSED.
Referenced by HAL_SD_DeInit().