stm32f7xx_hal_dma_ex.h
Go to the documentation of this file.
1 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef __STM32F7xx_HAL_DMA_EX_H
22 #define __STM32F7xx_HAL_DMA_EX_H
23 
24 #ifdef __cplusplus
25  extern "C" {
26 #endif
27 
28 /* Includes ------------------------------------------------------------------*/
29 #include "stm32f7xx_hal_def.h"
30 
39 /* Exported types ------------------------------------------------------------*/
48 typedef enum
49 {
50  MEMORY0 = 0x00U,
51  MEMORY1 = 0x01U,
54 
59 /* Exported constants --------------------------------------------------------*/
60 
70 #define DMA_CHANNEL_0 0x00000000U
71 #define DMA_CHANNEL_1 0x02000000U
72 #define DMA_CHANNEL_2 0x04000000U
73 #define DMA_CHANNEL_3 0x06000000U
74 #define DMA_CHANNEL_4 0x08000000U
75 #define DMA_CHANNEL_5 0x0A000000U
76 #define DMA_CHANNEL_6 0x0C000000U
77 #define DMA_CHANNEL_7 0x0E000000U
78 #if defined (STM32F722xx) || defined (STM32F723xx) || defined (STM32F732xx) || defined (STM32F733xx) ||\
79  defined (STM32F765xx) || defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx) ||\
80  defined (STM32F779xx) || defined (STM32F730xx)
81 #define DMA_CHANNEL_8 0x10000000U
82 #define DMA_CHANNEL_9 0x12000000U
83 #define DMA_CHANNEL_10 0x14000000U
84 #define DMA_CHANNEL_11 0x16000000U
85 #define DMA_CHANNEL_12 0x18000000U
86 #define DMA_CHANNEL_13 0x1A000000U
87 #define DMA_CHANNEL_14 0x1C000000U
88 #define DMA_CHANNEL_15 0x1E000000U
89 #endif /* STM32F722xx || STM32F723xx || STM32F732xx || STM32F733xx || STM32F765xx || STM32F767xx ||
90  STM32F769xx || STM32F777xx || STM32F779xx || STM32F730xx */
91 
100 /* Exported functions --------------------------------------------------------*/
111 /* IO operation functions *******************************************************/
112 HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength);
113 HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength);
115 
123 /* Private macros ------------------------------------------------------------*/
128 #if defined (STM32F722xx) || defined (STM32F723xx) || defined (STM32F732xx) || defined (STM32F733xx) ||\
129  defined (STM32F765xx) || defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx) ||\
130  defined (STM32F779xx) || defined (STM32F730xx)
131 #define IS_DMA_CHANNEL(CHANNEL) (((CHANNEL) == DMA_CHANNEL_0) || \
132  ((CHANNEL) == DMA_CHANNEL_1) || \
133  ((CHANNEL) == DMA_CHANNEL_2) || \
134  ((CHANNEL) == DMA_CHANNEL_3) || \
135  ((CHANNEL) == DMA_CHANNEL_4) || \
136  ((CHANNEL) == DMA_CHANNEL_5) || \
137  ((CHANNEL) == DMA_CHANNEL_6) || \
138  ((CHANNEL) == DMA_CHANNEL_7) || \
139  ((CHANNEL) == DMA_CHANNEL_8) || \
140  ((CHANNEL) == DMA_CHANNEL_9) || \
141  ((CHANNEL) == DMA_CHANNEL_10) || \
142  ((CHANNEL) == DMA_CHANNEL_11) || \
143  ((CHANNEL) == DMA_CHANNEL_12) || \
144  ((CHANNEL) == DMA_CHANNEL_13) || \
145  ((CHANNEL) == DMA_CHANNEL_14) || \
146  ((CHANNEL) == DMA_CHANNEL_15))
147 #else
148 #define IS_DMA_CHANNEL(CHANNEL) (((CHANNEL) == DMA_CHANNEL_0) || \
149  ((CHANNEL) == DMA_CHANNEL_1) || \
150  ((CHANNEL) == DMA_CHANNEL_2) || \
151  ((CHANNEL) == DMA_CHANNEL_3) || \
152  ((CHANNEL) == DMA_CHANNEL_4) || \
153  ((CHANNEL) == DMA_CHANNEL_5) || \
154  ((CHANNEL) == DMA_CHANNEL_6) || \
155  ((CHANNEL) == DMA_CHANNEL_7))
156 #endif /* STM32F722xx || STM32F723xx || STM32F732xx || STM32F733xx || STM32F765xx || STM32F767xx ||
157  STM32F769xx || STM32F777xx || STM32F779xx || STM32F730xx*/
158 
162 /* Private functions ---------------------------------------------------------*/
179 #ifdef __cplusplus
180 }
181 #endif
182 
183 #endif /* __STM32F7xx_HAL_DMA_H */
184 
185 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
HAL_StatusTypeDef
HAL_StatusTypeDef
HAL Status structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:40
__DMA_HandleTypeDef
DMA handle Structure definition.
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h:139
HAL_DMAEx_MultiBufferStart
HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength)
HAL_DMAEx_ChangeMemory
HAL_StatusTypeDef HAL_DMAEx_ChangeMemory(DMA_HandleTypeDef *hdma, uint32_t Address, HAL_DMA_MemoryTypeDef memory)
HAL_DMA_MemoryTypeDef
HAL_DMA_MemoryTypeDef
HAL DMA Memory definition
Definition: stm32f7xx_hal_dma_ex.h:48
HAL_DMAEx_MultiBufferStart_IT
HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength)
stm32f7xx_hal_def.h
This file contains HAL common defines, enumeration, macros and structures definitions.
MEMORY0
@ MEMORY0
Definition: stm32f7xx_hal_dma_ex.h:50
MEMORY1
@ MEMORY1
Definition: stm32f7xx_hal_dma_ex.h:51


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:53