1 /** 2 ****************************************************************************** 3 * @file stm32f4xx_hal_dma_ex.h 4 * @author MCD Application Team 5 * @brief Header file of DMA HAL extension module. 6 ****************************************************************************** 7 * @attention 8 * 9 * Copyright (c) 2017 STMicroelectronics. 10 * All rights reserved. 11 * 12 * This software is licensed under terms that can be found in the LICENSE file in 13 * the root directory of this software component. 14 * If no LICENSE file comes with this software, it is provided AS-IS. 15 * 16 ****************************************************************************** 17 */ 18 19 /* Define to prevent recursive inclusion -------------------------------------*/ 20 #ifndef __STM32F4xx_HAL_DMA_EX_H 21 #define __STM32F4xx_HAL_DMA_EX_H 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 /* Includes ------------------------------------------------------------------*/ 28 #include "stm32f4xx_hal_def.h" 29 30 /** @addtogroup STM32F4xx_HAL_Driver 31 * @{ 32 */ 33 34 /** @addtogroup DMAEx 35 * @{ 36 */ 37 38 /* Exported types ------------------------------------------------------------*/ 39 /** @defgroup DMAEx_Exported_Types DMAEx Exported Types 40 * @brief DMAEx Exported types 41 * @{ 42 */ 43 44 /** 45 * @brief HAL DMA Memory definition 46 */ 47 typedef enum 48 { 49 MEMORY0 = 0x00U, /*!< Memory 0 */ 50 MEMORY1 = 0x01U /*!< Memory 1 */ 51 }HAL_DMA_MemoryTypeDef; 52 53 /** 54 * @} 55 */ 56 57 /* Exported functions --------------------------------------------------------*/ 58 /** @defgroup DMAEx_Exported_Functions DMAEx Exported Functions 59 * @brief DMAEx Exported functions 60 * @{ 61 */ 62 63 /** @defgroup DMAEx_Exported_Functions_Group1 Extended features functions 64 * @brief Extended features functions 65 * @{ 66 */ 67 68 /* IO operation functions *******************************************************/ 69 HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength); 70 HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength); 71 HAL_StatusTypeDef HAL_DMAEx_ChangeMemory(DMA_HandleTypeDef *hdma, uint32_t Address, HAL_DMA_MemoryTypeDef memory); 72 73 /** 74 * @} 75 */ 76 /** 77 * @} 78 */ 79 80 /* Private functions ---------------------------------------------------------*/ 81 /** @defgroup DMAEx_Private_Functions DMAEx Private Functions 82 * @brief DMAEx Private functions 83 * @{ 84 */ 85 /** 86 * @} 87 */ 88 89 /** 90 * @} 91 */ 92 93 /** 94 * @} 95 */ 96 97 #ifdef __cplusplus 98 } 99 #endif 100 101 #endif /*__STM32F4xx_HAL_DMA_EX_H*/ 102 103