Prusa MINI Firmware overview
|
Go to the documentation of this file.
37 #ifndef __STM32F4xx_HAL_DMA_H
38 #define __STM32F4xx_HAL_DMA_H
202 #define HAL_DMA_ERROR_NONE 0x00000000U
203 #define HAL_DMA_ERROR_TE 0x00000001U
204 #define HAL_DMA_ERROR_FE 0x00000002U
205 #define HAL_DMA_ERROR_DME 0x00000004U
206 #define HAL_DMA_ERROR_TIMEOUT 0x00000020U
207 #define HAL_DMA_ERROR_PARAM 0x00000040U
208 #define HAL_DMA_ERROR_NO_XFER 0x00000080U
209 #define HAL_DMA_ERROR_NOT_SUPPORTED 0x00000100U
218 #define DMA_CHANNEL_0 0x00000000U
219 #define DMA_CHANNEL_1 0x02000000U
220 #define DMA_CHANNEL_2 0x04000000U
221 #define DMA_CHANNEL_3 0x06000000U
222 #define DMA_CHANNEL_4 0x08000000U
223 #define DMA_CHANNEL_5 0x0A000000U
224 #define DMA_CHANNEL_6 0x0C000000U
225 #define DMA_CHANNEL_7 0x0E000000U
226 #if defined (DMA_SxCR_CHSEL_3)
227 #define DMA_CHANNEL_8 0x10000000U
228 #define DMA_CHANNEL_9 0x12000000U
229 #define DMA_CHANNEL_10 0x14000000U
230 #define DMA_CHANNEL_11 0x16000000U
231 #define DMA_CHANNEL_12 0x18000000U
232 #define DMA_CHANNEL_13 0x1A000000U
233 #define DMA_CHANNEL_14 0x1C000000U
234 #define DMA_CHANNEL_15 0x1E000000U
244 #define DMA_PERIPH_TO_MEMORY 0x00000000U
245 #define DMA_MEMORY_TO_PERIPH ((uint32_t)DMA_SxCR_DIR_0)
246 #define DMA_MEMORY_TO_MEMORY ((uint32_t)DMA_SxCR_DIR_1)
255 #define DMA_PINC_ENABLE ((uint32_t)DMA_SxCR_PINC)
256 #define DMA_PINC_DISABLE 0x00000000U
265 #define DMA_MINC_ENABLE ((uint32_t)DMA_SxCR_MINC)
266 #define DMA_MINC_DISABLE 0x00000000U
275 #define DMA_PDATAALIGN_BYTE 0x00000000U
276 #define DMA_PDATAALIGN_HALFWORD ((uint32_t)DMA_SxCR_PSIZE_0)
277 #define DMA_PDATAALIGN_WORD ((uint32_t)DMA_SxCR_PSIZE_1)
286 #define DMA_MDATAALIGN_BYTE 0x00000000U
287 #define DMA_MDATAALIGN_HALFWORD ((uint32_t)DMA_SxCR_MSIZE_0)
288 #define DMA_MDATAALIGN_WORD ((uint32_t)DMA_SxCR_MSIZE_1)
297 #define DMA_NORMAL 0x00000000U
298 #define DMA_CIRCULAR ((uint32_t)DMA_SxCR_CIRC)
299 #define DMA_PFCTRL ((uint32_t)DMA_SxCR_PFCTRL)
308 #define DMA_PRIORITY_LOW 0x00000000U
309 #define DMA_PRIORITY_MEDIUM ((uint32_t)DMA_SxCR_PL_0)
310 #define DMA_PRIORITY_HIGH ((uint32_t)DMA_SxCR_PL_1)
311 #define DMA_PRIORITY_VERY_HIGH ((uint32_t)DMA_SxCR_PL)
320 #define DMA_FIFOMODE_DISABLE 0x00000000U
321 #define DMA_FIFOMODE_ENABLE ((uint32_t)DMA_SxFCR_DMDIS)
330 #define DMA_FIFO_THRESHOLD_1QUARTERFULL 0x00000000U
331 #define DMA_FIFO_THRESHOLD_HALFFULL ((uint32_t)DMA_SxFCR_FTH_0)
332 #define DMA_FIFO_THRESHOLD_3QUARTERSFULL ((uint32_t)DMA_SxFCR_FTH_1)
333 #define DMA_FIFO_THRESHOLD_FULL ((uint32_t)DMA_SxFCR_FTH)
342 #define DMA_MBURST_SINGLE 0x00000000U
343 #define DMA_MBURST_INC4 ((uint32_t)DMA_SxCR_MBURST_0)
344 #define DMA_MBURST_INC8 ((uint32_t)DMA_SxCR_MBURST_1)
345 #define DMA_MBURST_INC16 ((uint32_t)DMA_SxCR_MBURST)
354 #define DMA_PBURST_SINGLE 0x00000000U
355 #define DMA_PBURST_INC4 ((uint32_t)DMA_SxCR_PBURST_0)
356 #define DMA_PBURST_INC8 ((uint32_t)DMA_SxCR_PBURST_1)
357 #define DMA_PBURST_INC16 ((uint32_t)DMA_SxCR_PBURST)
366 #define DMA_IT_TC ((uint32_t)DMA_SxCR_TCIE)
367 #define DMA_IT_HT ((uint32_t)DMA_SxCR_HTIE)
368 #define DMA_IT_TE ((uint32_t)DMA_SxCR_TEIE)
369 #define DMA_IT_DME ((uint32_t)DMA_SxCR_DMEIE)
370 #define DMA_IT_FE 0x00000080U
379 #define DMA_FLAG_FEIF0_4 0x00000001U
380 #define DMA_FLAG_DMEIF0_4 0x00000004U
381 #define DMA_FLAG_TEIF0_4 0x00000008U
382 #define DMA_FLAG_HTIF0_4 0x00000010U
383 #define DMA_FLAG_TCIF0_4 0x00000020U
384 #define DMA_FLAG_FEIF1_5 0x00000040U
385 #define DMA_FLAG_DMEIF1_5 0x00000100U
386 #define DMA_FLAG_TEIF1_5 0x00000200U
387 #define DMA_FLAG_HTIF1_5 0x00000400U
388 #define DMA_FLAG_TCIF1_5 0x00000800U
389 #define DMA_FLAG_FEIF2_6 0x00010000U
390 #define DMA_FLAG_DMEIF2_6 0x00040000U
391 #define DMA_FLAG_TEIF2_6 0x00080000U
392 #define DMA_FLAG_HTIF2_6 0x00100000U
393 #define DMA_FLAG_TCIF2_6 0x00200000U
394 #define DMA_FLAG_FEIF3_7 0x00400000U
395 #define DMA_FLAG_DMEIF3_7 0x01000000U
396 #define DMA_FLAG_TEIF3_7 0x02000000U
397 #define DMA_FLAG_HTIF3_7 0x04000000U
398 #define DMA_FLAG_TCIF3_7 0x08000000U
413 #define __HAL_DMA_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DMA_STATE_RESET)
427 #define __HAL_DMA_GET_FS(__HANDLE__) (((__HANDLE__)->Instance->FCR & (DMA_SxFCR_FS)))
434 #define __HAL_DMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= DMA_SxCR_EN)
441 #define __HAL_DMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~DMA_SxCR_EN)
450 #define __HAL_DMA_GET_TC_FLAG_INDEX(__HANDLE__) \
451 (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_TCIF0_4 :\
452 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_TCIF0_4 :\
453 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_TCIF0_4 :\
454 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_TCIF0_4 :\
455 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_TCIF1_5 :\
456 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_TCIF1_5 :\
457 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_TCIF1_5 :\
458 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_TCIF1_5 :\
459 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_TCIF2_6 :\
460 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_TCIF2_6 :\
461 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_TCIF2_6 :\
462 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_TCIF2_6 :\
470 #define __HAL_DMA_GET_HT_FLAG_INDEX(__HANDLE__)\
471 (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_HTIF0_4 :\
472 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_HTIF0_4 :\
473 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_HTIF0_4 :\
474 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_HTIF0_4 :\
475 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_HTIF1_5 :\
476 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_HTIF1_5 :\
477 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_HTIF1_5 :\
478 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_HTIF1_5 :\
479 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_HTIF2_6 :\
480 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_HTIF2_6 :\
481 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_HTIF2_6 :\
482 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_HTIF2_6 :\
490 #define __HAL_DMA_GET_TE_FLAG_INDEX(__HANDLE__)\
491 (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_TEIF0_4 :\
492 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_TEIF0_4 :\
493 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_TEIF0_4 :\
494 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_TEIF0_4 :\
495 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_TEIF1_5 :\
496 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_TEIF1_5 :\
497 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_TEIF1_5 :\
498 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_TEIF1_5 :\
499 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_TEIF2_6 :\
500 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_TEIF2_6 :\
501 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_TEIF2_6 :\
502 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_TEIF2_6 :\
510 #define __HAL_DMA_GET_FE_FLAG_INDEX(__HANDLE__)\
511 (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_FEIF0_4 :\
512 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_FEIF0_4 :\
513 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_FEIF0_4 :\
514 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_FEIF0_4 :\
515 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_FEIF1_5 :\
516 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_FEIF1_5 :\
517 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_FEIF1_5 :\
518 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_FEIF1_5 :\
519 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_FEIF2_6 :\
520 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_FEIF2_6 :\
521 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_FEIF2_6 :\
522 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_FEIF2_6 :\
530 #define __HAL_DMA_GET_DME_FLAG_INDEX(__HANDLE__)\
531 (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_DMEIF0_4 :\
532 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_DMEIF0_4 :\
533 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_DMEIF0_4 :\
534 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_DMEIF0_4 :\
535 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_DMEIF1_5 :\
536 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_DMEIF1_5 :\
537 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_DMEIF1_5 :\
538 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_DMEIF1_5 :\
539 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_DMEIF2_6 :\
540 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_DMEIF2_6 :\
541 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_DMEIF2_6 :\
542 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_DMEIF2_6 :\
558 #define __HAL_DMA_GET_FLAG(__HANDLE__, __FLAG__)\
559 (((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream3)? (DMA2->HISR & (__FLAG__)) :\
560 ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream7)? (DMA2->LISR & (__FLAG__)) :\
561 ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream3)? (DMA1->HISR & (__FLAG__)) : (DMA1->LISR & (__FLAG__)))
576 #define __HAL_DMA_CLEAR_FLAG(__HANDLE__, __FLAG__) \
577 (((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream3)? (DMA2->HIFCR = (__FLAG__)) :\
578 ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream7)? (DMA2->LIFCR = (__FLAG__)) :\
579 ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream3)? (DMA1->HIFCR = (__FLAG__)) : (DMA1->LIFCR = (__FLAG__)))
593 #define __HAL_DMA_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__INTERRUPT__) != DMA_IT_FE)? \
594 ((__HANDLE__)->Instance->CR |= (__INTERRUPT__)) : ((__HANDLE__)->Instance->FCR |= (__INTERRUPT__)))
608 #define __HAL_DMA_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__INTERRUPT__) != DMA_IT_FE)? \
609 ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__)) : ((__HANDLE__)->Instance->FCR &= ~(__INTERRUPT__)))
623 #define __HAL_DMA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__INTERRUPT__) != DMA_IT_FE)? \
624 ((__HANDLE__)->Instance->CR & (__INTERRUPT__)) : \
625 ((__HANDLE__)->Instance->FCR & (__INTERRUPT__)))
644 #define __HAL_DMA_SET_COUNTER(__HANDLE__, __COUNTER__) ((__HANDLE__)->Instance->NDTR = (uint16_t)(__COUNTER__))
652 #define __HAL_DMA_GET_COUNTER(__HANDLE__) ((__HANDLE__)->Instance->NDTR)
719 #if defined (DMA_SxCR_CHSEL_3)
720 #define IS_DMA_CHANNEL(CHANNEL) (((CHANNEL) == DMA_CHANNEL_0) || \
721 ((CHANNEL) == DMA_CHANNEL_1) || \
722 ((CHANNEL) == DMA_CHANNEL_2) || \
723 ((CHANNEL) == DMA_CHANNEL_3) || \
724 ((CHANNEL) == DMA_CHANNEL_4) || \
725 ((CHANNEL) == DMA_CHANNEL_5) || \
726 ((CHANNEL) == DMA_CHANNEL_6) || \
727 ((CHANNEL) == DMA_CHANNEL_7) || \
728 ((CHANNEL) == DMA_CHANNEL_8) || \
729 ((CHANNEL) == DMA_CHANNEL_9) || \
730 ((CHANNEL) == DMA_CHANNEL_10)|| \
731 ((CHANNEL) == DMA_CHANNEL_11)|| \
732 ((CHANNEL) == DMA_CHANNEL_12)|| \
733 ((CHANNEL) == DMA_CHANNEL_13)|| \
734 ((CHANNEL) == DMA_CHANNEL_14)|| \
735 ((CHANNEL) == DMA_CHANNEL_15))
737 #define IS_DMA_CHANNEL(CHANNEL) (((CHANNEL) == DMA_CHANNEL_0) || \
738 ((CHANNEL) == DMA_CHANNEL_1) || \
739 ((CHANNEL) == DMA_CHANNEL_2) || \
740 ((CHANNEL) == DMA_CHANNEL_3) || \
741 ((CHANNEL) == DMA_CHANNEL_4) || \
742 ((CHANNEL) == DMA_CHANNEL_5) || \
743 ((CHANNEL) == DMA_CHANNEL_6) || \
744 ((CHANNEL) == DMA_CHANNEL_7))
747 #define IS_DMA_DIRECTION(DIRECTION) (((DIRECTION) == DMA_PERIPH_TO_MEMORY ) || \
748 ((DIRECTION) == DMA_MEMORY_TO_PERIPH) || \
749 ((DIRECTION) == DMA_MEMORY_TO_MEMORY))
751 #define IS_DMA_BUFFER_SIZE(SIZE) (((SIZE) >= 0x01U) && ((SIZE) < 0x10000U))
753 #define IS_DMA_PERIPHERAL_INC_STATE(STATE) (((STATE) == DMA_PINC_ENABLE) || \
754 ((STATE) == DMA_PINC_DISABLE))
756 #define IS_DMA_MEMORY_INC_STATE(STATE) (((STATE) == DMA_MINC_ENABLE) || \
757 ((STATE) == DMA_MINC_DISABLE))
759 #define IS_DMA_PERIPHERAL_DATA_SIZE(SIZE) (((SIZE) == DMA_PDATAALIGN_BYTE) || \
760 ((SIZE) == DMA_PDATAALIGN_HALFWORD) || \
761 ((SIZE) == DMA_PDATAALIGN_WORD))
763 #define IS_DMA_MEMORY_DATA_SIZE(SIZE) (((SIZE) == DMA_MDATAALIGN_BYTE) || \
764 ((SIZE) == DMA_MDATAALIGN_HALFWORD) || \
765 ((SIZE) == DMA_MDATAALIGN_WORD ))
767 #define IS_DMA_MODE(MODE) (((MODE) == DMA_NORMAL ) || \
768 ((MODE) == DMA_CIRCULAR) || \
769 ((MODE) == DMA_PFCTRL))
771 #define IS_DMA_PRIORITY(PRIORITY) (((PRIORITY) == DMA_PRIORITY_LOW ) || \
772 ((PRIORITY) == DMA_PRIORITY_MEDIUM) || \
773 ((PRIORITY) == DMA_PRIORITY_HIGH) || \
774 ((PRIORITY) == DMA_PRIORITY_VERY_HIGH))
776 #define IS_DMA_FIFO_MODE_STATE(STATE) (((STATE) == DMA_FIFOMODE_DISABLE ) || \
777 ((STATE) == DMA_FIFOMODE_ENABLE))
779 #define IS_DMA_FIFO_THRESHOLD(THRESHOLD) (((THRESHOLD) == DMA_FIFO_THRESHOLD_1QUARTERFULL ) || \
780 ((THRESHOLD) == DMA_FIFO_THRESHOLD_HALFFULL) || \
781 ((THRESHOLD) == DMA_FIFO_THRESHOLD_3QUARTERSFULL) || \
782 ((THRESHOLD) == DMA_FIFO_THRESHOLD_FULL))
784 #define IS_DMA_MEMORY_BURST(BURST) (((BURST) == DMA_MBURST_SINGLE) || \
785 ((BURST) == DMA_MBURST_INC4) || \
786 ((BURST) == DMA_MBURST_INC8) || \
787 ((BURST) == DMA_MBURST_INC16))
789 #define IS_DMA_PERIPHERAL_BURST(BURST) (((BURST) == DMA_PBURST_SINGLE) || \
790 ((BURST) == DMA_PBURST_INC4) || \
791 ((BURST) == DMA_PBURST_INC8) || \
792 ((BURST) == DMA_PBURST_INC16))
Definition: stm32f4xx_hal_dma.h:144
uint32_t PeriphDataAlignment
Definition: stm32f4xx_hal_dma.h:80
uint32_t HAL_DMA_GetError(DMA_HandleTypeDef *hdma)
uint32_t StreamIndex
Definition: stm32f4xx_hal_dma.h:183
HAL_DMA_LevelCompleteTypeDef
HAL DMA Error Code structure definition.
Definition: stm32f4xx_hal_dma.h:132
HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma)
uint32_t PeriphInc
Definition: stm32f4xx_hal_dma.h:74
Definition: stm32f4xx_hal_dma.h:135
uint32_t FIFOMode
Definition: stm32f4xx_hal_dma.h:94
HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
void(* XferAbortCallback)(struct __DMA_HandleTypeDef *hdma)
Definition: stm32f4xx_hal_dma.h:177
This file contains HAL common defines, enumeration, macros and structures definitions.
uint32_t FIFOThreshold
Definition: stm32f4xx_hal_dma.h:99
void(* XferM1HalfCpltCallback)(struct __DMA_HandleTypeDef *hdma)
Definition: stm32f4xx_hal_dma.h:173
uint32_t PeriphBurst
Definition: stm32f4xx_hal_dma.h:108
DMA_Stream_TypeDef * Instance
Definition: stm32f4xx_hal_dma.h:157
Definition: stm32f4xx_hal_dma.h:122
Definition: stm32f4xx_hal_dma.h:147
void(* XferErrorCallback)(struct __DMA_HandleTypeDef *hdma)
Definition: stm32f4xx_hal_dma.h:175
HAL_DMA_StateTypeDef
HAL DMA State structures definition.
Definition: stm32f4xx_hal_dma.h:119
Definition: stm32f4xx_hal_dma.h:145
Definition: stm32f4xx_hal_dma.h:146
HAL_DMA_CallbackIDTypeDef
HAL DMA Error Code structure definition.
Definition: stm32f4xx_hal_dma.h:141
DMA Configuration Structure definition.
Definition: stm32f4xx_hal_dma.h:65
HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, HAL_DMA_LevelCompleteTypeDef CompleteLevel, uint32_t Timeout)
HAL_StatusTypeDef HAL_DMA_CleanCallbacks(DMA_HandleTypeDef *hdma)
void(* XferHalfCpltCallback)(struct __DMA_HandleTypeDef *hdma)
Definition: stm32f4xx_hal_dma.h:169
__IO HAL_DMA_StateTypeDef State
Definition: stm32f4xx_hal_dma.h:163
void * Parent
Definition: stm32f4xx_hal_dma.h:165
struct __DMA_HandleTypeDef DMA_HandleTypeDef
DMA handle Structure definition.
DMA_InitTypeDef Init
Definition: stm32f4xx_hal_dma.h:159
Definition: stm32f4xx_hal_dma.h:143
uint32_t Direction
Definition: stm32f4xx_hal_dma.h:70
uint32_t Priority
Definition: stm32f4xx_hal_dma.h:91
Header file of DMA HAL extension module.
Definition: stm32f4xx_hal_dma.h:124
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32f4xx_hal_def.h:55
Definition: stm32f4xx_hal_dma.h:123
Definition: stm32f4xx_hal_dma.h:121
uint32_t MemInc
Definition: stm32f4xx_hal_dma.h:77
Definition: stm32f4xx_hal_dma.h:126
Definition: stm32f4xx_hal_dma.h:149
__IO uint32_t ErrorCode
Definition: stm32f4xx_hal_dma.h:179
void
Definition: png.h:1083
DMA handle Structure definition.
Definition: stm32f4xx_hal_dma.h:155
uint32_t Channel
Definition: stm32f4xx_hal_dma.h:67
HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
Definition: stm32f4xx_hal_dma.h:125
uint32_t Mode
Definition: stm32f4xx_hal_dma.h:86
void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
HAL_StatusTypeDef HAL_DMA_Start(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
HAL_StatusTypeDef HAL_DMA_UnRegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID)
HAL_LockTypeDef Lock
Definition: stm32f4xx_hal_dma.h:161
void(* XferCpltCallback)(struct __DMA_HandleTypeDef *hdma)
Definition: stm32f4xx_hal_dma.h:167
HAL_DMA_StateTypeDef HAL_DMA_GetState(DMA_HandleTypeDef *hdma)
HAL_StatusTypeDef HAL_DMA_RegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID, void(*pCallback)(DMA_HandleTypeDef *_hdma))
uint32_t MemBurst
Definition: stm32f4xx_hal_dma.h:102
Definition: stm32f4xx_hal_dma.h:148
HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
Definition: stm32f4xx_hal_dma.h:134
HAL_LockTypeDef
HAL Lock structures definition.
Definition: stm32f4xx_hal_def.h:66
uint32_t StreamBaseAddress
Definition: stm32f4xx_hal_dma.h:181
uint32_t MemDataAlignment
Definition: stm32f4xx_hal_dma.h:83
void(* XferM1CpltCallback)(struct __DMA_HandleTypeDef *hdma)
Definition: stm32f4xx_hal_dma.h:171
HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)