1 /**
2   ******************************************************************************
3   * @file    stm32l4xx_hal_mmc_ex.h
4   * @author  MCD Application Team
5   * @brief   Header file of SD HAL extended module.
6   ******************************************************************************
7   * @attention
8   *
9   * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
10   * All rights reserved.</center></h2>
11   *
12   * This software component is licensed by ST under BSD 3-Clause license,
13   * the "License"; You may not use this file except in compliance with the
14   * License. You may obtain a copy of the License at:
15   *                       opensource.org/licenses/BSD-3-Clause
16   *
17   ******************************************************************************
18   */
19 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef STM32L4xx_HAL_MMC_EX_H
22 #define STM32L4xx_HAL_MMC_EX_H
23 
24 #ifdef __cplusplus
25  extern "C" {
26 #endif
27 
28 #if defined(STM32L4P5xx) || defined(STM32L4Q5xx) || defined(STM32L4R5xx) || defined(STM32L4R7xx) || defined(STM32L4R9xx) || defined(STM32L4S5xx) || defined(STM32L4S7xx) || defined(STM32L4S9xx)
29 
30 /* Includes ------------------------------------------------------------------*/
31 #include "stm32l4xx_hal_def.h"
32 
33 /** @addtogroup STM32L4xx_HAL_Driver
34   * @{
35   */
36 
37 /** @addtogroup MMCEx
38   * @brief SD HAL extended module driver
39   * @{
40   */
41 
42 /* Exported types ------------------------------------------------------------*/
43 /** @addtogroup MMCEx_Exported_Types
44   * @{
45   */
46 
47 /** @addtogroup MMCEx_Exported_Types_Group1
48   * @{
49   */
50 typedef enum
51 {
52   MMC_DMA_BUFFER0      = 0x00U,    /*!< selects MMC internal DMA Buffer 0     */
53   MMC_DMA_BUFFER1      = 0x01U,    /*!< selects MMC internal DMA Buffer 1     */
54 
55 }HAL_MMCEx_DMABuffer_MemoryTypeDef;
56 
57 
58 /**
59   * @}
60   */
61 
62 /**
63   * @}
64   */
65 /* Exported constants --------------------------------------------------------*/
66 /* Exported macro ------------------------------------------------------------*/
67 /* Exported functions --------------------------------------------------------*/
68 /** @defgroup MMCEx_Exported_Functions MMCEx Exported Functions
69   * @{
70   */
71 
72 /** @defgroup MMCEx_Exported_Functions_Group1 MultiBuffer functions
73   * @{
74   */
75 HAL_StatusTypeDef HAL_MMCEx_ConfigDMAMultiBuffer(MMC_HandleTypeDef *hmmc, uint32_t * pDataBuffer0, uint32_t * pDataBuffer1, uint32_t BufferSize);
76 HAL_StatusTypeDef HAL_MMCEx_ReadBlocksDMAMultiBuffer(MMC_HandleTypeDef *hmmc, uint32_t BlockAdd, uint32_t NumberOfBlocks);
77 HAL_StatusTypeDef HAL_MMCEx_WriteBlocksDMAMultiBuffer(MMC_HandleTypeDef *hmmc, uint32_t BlockAdd, uint32_t NumberOfBlocks);
78 HAL_StatusTypeDef HAL_MMCEx_ChangeDMABuffer(MMC_HandleTypeDef *hmmc, HAL_MMCEx_DMABuffer_MemoryTypeDef Buffer, uint32_t *pDataBuffer);
79 
80 void HAL_MMCEx_Read_DMADoubleBuffer0CpltCallback(MMC_HandleTypeDef *hmmc);
81 void HAL_MMCEx_Read_DMADoubleBuffer1CpltCallback(MMC_HandleTypeDef *hmmc);
82 void HAL_MMCEx_Write_DMADoubleBuffer0CpltCallback(MMC_HandleTypeDef *hmmc);
83 void HAL_MMCEx_Write_DMADoubleBuffer1CpltCallback(MMC_HandleTypeDef *hmmc);
84 
85 /**
86   * @}
87   */
88 
89 /**
90   * @}
91   */
92 
93 /* Private types -------------------------------------------------------------*/
94 /* Private defines -----------------------------------------------------------*/
95 /* Private variables ---------------------------------------------------------*/
96 /* Private constants ---------------------------------------------------------*/
97 /* Private macros ------------------------------------------------------------*/
98 /* Private functions prototypes ----------------------------------------------*/
99 /* Private functions ---------------------------------------------------------*/
100 
101 /**
102   * @}
103   */
104 
105 /**
106   * @}
107   */
108 #endif /* STM32L4P5xx || STM32L4Q5xx || STM32L4R5xx || STM32L4R7xx || STM32L4R9xx || STM32L4S5xx || STM32L4S7xx || STM32L4S9xx */
109 
110 #ifdef __cplusplus
111 }
112 #endif
113 
114 
115 #endif /* STM32L4xx_HAL_MMCEx_H */
116 
117 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
118