STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_hal_sd_ex.h
Go to the documentation of this file.
1 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef STM32L4xx_HAL_SD_EX_H
22 #define STM32L4xx_HAL_SD_EX_H
23 
24 #ifdef __cplusplus
25  extern "C" {
26 #endif
27 
28 #if defined(STM32L4R5xx) || defined(STM32L4R7xx) || defined(STM32L4R9xx) || defined(STM32L4S5xx) || defined(STM32L4S7xx) || defined(STM32L4S9xx)
29 
30 /* Includes ------------------------------------------------------------------*/
31 #include "stm32l4xx_hal_def.h"
32 
42 /* Exported types ------------------------------------------------------------*/
50 typedef enum
51 {
52  SD_DMA_BUFFER0 = 0x00U,
53  SD_DMA_BUFFER1 = 0x01U,
55 }HAL_SDEx_DMABuffer_MemoryTypeDef;
56 
57 
65 /* Exported constants --------------------------------------------------------*/
66 /* Exported macro ------------------------------------------------------------*/
67 /* Exported functions --------------------------------------------------------*/
75 uint32_t HAL_SDEx_HighSpeed (SD_HandleTypeDef *hsd);
76 
77 void HAL_SDEx_DriveTransceiver_1_8V_Callback(FlagStatus status);
78 
86 HAL_StatusTypeDef HAL_SDEx_ConfigDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t * pDataBuffer0, uint32_t * pDataBuffer1, uint32_t BufferSize);
87 HAL_StatusTypeDef HAL_SDEx_ReadBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks);
88 HAL_StatusTypeDef HAL_SDEx_WriteBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks);
89 HAL_StatusTypeDef HAL_SDEx_ChangeDMABuffer(SD_HandleTypeDef *hsd, HAL_SDEx_DMABuffer_MemoryTypeDef Buffer, uint32_t *pDataBuffer);
90 
95 
104 /* Private types -------------------------------------------------------------*/
105 /* Private defines -----------------------------------------------------------*/
106 /* Private variables ---------------------------------------------------------*/
107 /* Private constants ---------------------------------------------------------*/
108 /* Private macros ------------------------------------------------------------*/
109 /* Private functions prototypes ----------------------------------------------*/
110 /* Private functions ---------------------------------------------------------*/
111 
120 #endif /* STM32L4R5xx || STM32L4R7xx || STM32L4R9xx || STM32L4S5xx || STM32L4S7xx || STM32L4S9xx */
121 
122 #ifdef __cplusplus
123 }
124 #endif
125 
126 
127 #endif /* STM32L4xx_HAL_SDEx_H */
128 
129 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
uint32_t HAL_SDEx_HighSpeed(SD_HandleTypeDef *hsd)
Switches the SD card to High Speed mode. This API must be used after "Transfer State".
HAL_StatusTypeDef HAL_SDEx_WriteBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks)
Write block(s) to a specified address in a card. The transfered Data are stored in Buffer0 and Buffer...
struct __SD_HandleTypeDef else typedef struct endif SD_HandleTypeDef
SD handle Structure definition.
This file contains HAL common defines, enumeration, macros and structures definitions.
void HAL_SDEx_Write_DMADoubleBuffer0CpltCallback(SD_HandleTypeDef *hsd)
Write DMA Buffer 0 Transfer completed callbacks.
void HAL_SDEx_Read_DMADoubleBuffer0CpltCallback(SD_HandleTypeDef *hsd)
Read DMA Buffer 0 Transfer completed callbacks.
void HAL_SDEx_Write_DMADoubleBuffer1CpltCallback(SD_HandleTypeDef *hsd)
Write DMA Buffer 1 Transfer completed callbacks.
HAL_StatusTypeDef HAL_SDEx_ChangeDMABuffer(SD_HandleTypeDef *hsd, HAL_SDEx_DMABuffer_MemoryTypeDef Buffer, uint32_t *pDataBuffer)
Change the DMA Buffer0 or Buffer1 address on the fly.
HAL_StatusTypeDef HAL_SDEx_ReadBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks)
Reads block(s) from a specified address in a card. The received Data will be stored in Buffer0 and Bu...
HAL_StatusTypeDef HAL_SDEx_ConfigDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t *pDataBuffer0, uint32_t *pDataBuffer1, uint32_t BufferSize)
Configure DMA Dual Buffer mode. The Data transfer is managed by an Internal DMA.
void HAL_SDEx_Read_DMADoubleBuffer1CpltCallback(SD_HandleTypeDef *hsd)
Read DMA Buffer 1 Transfer completed callbacks.
void HAL_SDEx_DriveTransceiver_1_8V_Callback(FlagStatus status)
Enable/Disable the SD Transceiver 1.8V Mode Callback.