|
STM32L4xx_HAL_Driver
1.14.0
|
Header file of SD HAL module. More...
Go to the source code of this file.
Data Structures | |
| struct | HAL_SD_CardInfoTypeDef |
| SD Card Information Structure definition. More... | |
| struct | endif |
| ADC handle Structure definition. More... | |
| struct | HAL_SD_CardCSDTypeDef |
| struct | HAL_SD_CardCIDTypeDef |
| struct | HAL_SD_CardStatusTypeDef |
Typedefs | |
| typedef uint32_t | HAL_SD_CardStateTypeDef |
| typedef struct __SD_HandleTypeDef else typedef struct endif | SD_HandleTypeDef |
| SD handle Structure definition. More... | |
| typedef void(* | pSD_CallbackTypeDef) (SD_HandleTypeDef *hsd) |
| typedef void(* | pSD_TransceiverCallbackTypeDef) (FlagStatus status) |
Enumerations | |
| enum | HAL_SD_CallbackIDTypeDef { HAL_SD_TX_CPLT_CB_ID = 0x00U, HAL_SD_RX_CPLT_CB_ID = 0x01U, HAL_SD_ERROR_CB_ID = 0x02U, HAL_SD_ABORT_CB_ID = 0x03U, HAL_SD_READ_DMA_DBL_BUF0_CPLT_CB_ID = 0x04U, HAL_SD_READ_DMA_DBL_BUF1_CPLT_CB_ID = 0x05U, HAL_SD_WRITE_DMA_DBL_BUF0_CPLT_CB_ID = 0x06U, HAL_SD_WRITE_DMA_DBL_BUF1_CPLT_CB_ID = 0x07U, HAL_SD_MSP_INIT_CB_ID = 0x10U, HAL_SD_MSP_DEINIT_CB_ID = 0x11U } |
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. More... | |
| HAL_StatusTypeDef | HAL_SD_InitCard (SD_HandleTypeDef *hsd) |
| Initializes the SD Card. More... | |
| HAL_StatusTypeDef | HAL_SD_DeInit (SD_HandleTypeDef *hsd) |
| De-Initializes the SD card. More... | |
| void | HAL_SD_MspInit (SD_HandleTypeDef *hsd) |
| Initializes the SD MSP. More... | |
| void | HAL_SD_MspDeInit (SD_HandleTypeDef *hsd) |
| De-Initialize SD MSP. More... | |
| HAL_StatusTypeDef | HAL_SD_ReadBlocks (SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks, uint32_t Timeout) |
| Reads block(s) from a specified address in a card. The Data transfer is managed by polling mode. More... | |
| HAL_StatusTypeDef | HAL_SD_WriteBlocks (SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks, uint32_t Timeout) |
| Allows to write block(s) to a specified address in a card. The Data transfer is managed by polling mode. More... | |
| HAL_StatusTypeDef | HAL_SD_Erase (SD_HandleTypeDef *hsd, uint32_t BlockStartAdd, uint32_t BlockEndAdd) |
| Erases the specified memory area of the given SD card. More... | |
| HAL_StatusTypeDef | HAL_SD_ReadBlocks_IT (SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks) |
| Reads block(s) from a specified address in a card. The Data transfer is managed in interrupt mode. More... | |
| HAL_StatusTypeDef | HAL_SD_WriteBlocks_IT (SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks) |
| Writes block(s) to a specified address in a card. The Data transfer is managed in interrupt mode. More... | |
| HAL_StatusTypeDef | HAL_SD_ReadBlocks_DMA (SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks) |
| Reads block(s) from a specified address in a card. The Data transfer is managed by DMA mode. More... | |
| HAL_StatusTypeDef | HAL_SD_WriteBlocks_DMA (SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks) |
| Writes block(s) to a specified address in a card. The Data transfer is managed by DMA mode. More... | |
| void | HAL_SD_IRQHandler (SD_HandleTypeDef *hsd) |
| This function handles SD card interrupt request. More... | |
| void | HAL_SD_TxCpltCallback (SD_HandleTypeDef *hsd) |
| Tx Transfer completed callbacks. More... | |
| void | HAL_SD_RxCpltCallback (SD_HandleTypeDef *hsd) |
| Rx Transfer completed callbacks. More... | |
| void | HAL_SD_ErrorCallback (SD_HandleTypeDef *hsd) |
| SD error callbacks. More... | |
| void | HAL_SD_AbortCallback (SD_HandleTypeDef *hsd) |
| SD Abort callbacks. More... | |
| HAL_StatusTypeDef | HAL_SD_RegisterCallback (SD_HandleTypeDef *hsd, HAL_SD_CallbackIDTypeDef CallbackID, pSD_CallbackTypeDef pCallback) |
| Register a User SD Callback To be used instead of the weak (surcharged) predefined callback. More... | |
| HAL_StatusTypeDef | HAL_SD_UnRegisterCallback (SD_HandleTypeDef *hsd, HAL_SD_CallbackIDTypeDef CallbackID) |
| Unregister a User SD Callback SD Callback is redirected to the weak (surcharged) predefined callback. More... | |
| HAL_StatusTypeDef | HAL_SD_RegisterTransceiverCallback (SD_HandleTypeDef *hsd, pSD_TransceiverCallbackTypeDef pCallback) |
| Register a User SD Transceiver Callback To be used instead of the weak (surcharged) predefined callback. More... | |
| HAL_StatusTypeDef | HAL_SD_UnRegisterTransceiverCallback (SD_HandleTypeDef *hsd) |
| Unregister a User SD Transceiver Callback SD Callback is redirected to the weak (surcharged) predefined callback. More... | |
| HAL_StatusTypeDef | HAL_SD_ConfigWideBusOperation (SD_HandleTypeDef *hsd, uint32_t WideMode) |
| Enables wide bus operation for the requested card if supported by card. More... | |
| HAL_StatusTypeDef | HAL_SD_ConfigSpeedBusOperation (SD_HandleTypeDef *hsd, uint32_t SpeedMode) |
| Configure the speed bus mode. More... | |
| HAL_StatusTypeDef | HAL_SD_SendSDStatus (SD_HandleTypeDef *hsd, uint32_t *pSDstatus) |
| HAL_SD_CardStateTypeDef | HAL_SD_GetCardState (SD_HandleTypeDef *hsd) |
| Gets the current sd card data state. More... | |
| HAL_StatusTypeDef | HAL_SD_GetCardCID (SD_HandleTypeDef *hsd, HAL_SD_CardCIDTypeDef *pCID) |
| Returns information the information of the card which are stored on the CID register. More... | |
| HAL_StatusTypeDef | HAL_SD_GetCardCSD (SD_HandleTypeDef *hsd, HAL_SD_CardCSDTypeDef *pCSD) |
| Returns information the information of the card which are stored on the CSD register. More... | |
| HAL_StatusTypeDef | HAL_SD_GetCardStatus (SD_HandleTypeDef *hsd, HAL_SD_CardStatusTypeDef *pStatus) |
| Gets the SD status info. More... | |
| HAL_StatusTypeDef | HAL_SD_GetCardInfo (SD_HandleTypeDef *hsd, HAL_SD_CardInfoTypeDef *pCardInfo) |
| Gets the SD card info. More... | |
| HAL_SD_StateTypeDef | HAL_SD_GetState (SD_HandleTypeDef *hsd) |
| return the SD state More... | |
| uint32_t | HAL_SD_GetError (SD_HandleTypeDef *hsd) |
| Return the SD error code. More... | |
| HAL_StatusTypeDef | HAL_SD_Abort (SD_HandleTypeDef *hsd) |
| Abort the current transfer and disable the SD. More... | |
| HAL_StatusTypeDef | HAL_SD_Abort_IT (SD_HandleTypeDef *hsd) |
| Abort the current transfer and disable the SD (IT mode). More... | |
Variables | |
| C | |
Header file of SD HAL module.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32l4xx_hal_sd.h.
| C |