Prusa MINI Firmware overview
DMA Private Macros

DMA private macros. More...

Collaboration diagram for DMA Private Macros:

Macros

#define IS_DMA_CHANNEL(CHANNEL)
 
#define IS_DMA_DIRECTION(DIRECTION)
 
#define IS_DMA_BUFFER_SIZE(SIZE)   (((SIZE) >= 0x01U) && ((SIZE) < 0x10000U))
 
#define IS_DMA_PERIPHERAL_INC_STATE(STATE)
 
#define IS_DMA_MEMORY_INC_STATE(STATE)
 
#define IS_DMA_PERIPHERAL_DATA_SIZE(SIZE)
 
#define IS_DMA_MEMORY_DATA_SIZE(SIZE)
 
#define IS_DMA_MODE(MODE)
 
#define IS_DMA_PRIORITY(PRIORITY)
 
#define IS_DMA_FIFO_MODE_STATE(STATE)
 
#define IS_DMA_FIFO_THRESHOLD(THRESHOLD)
 
#define IS_DMA_MEMORY_BURST(BURST)
 
#define IS_DMA_PERIPHERAL_BURST(BURST)
 

Detailed Description

DMA private macros.

Macro Definition Documentation

◆ IS_DMA_CHANNEL

#define IS_DMA_CHANNEL (   CHANNEL)
Value:
(((CHANNEL) == DMA_CHANNEL_0) || \
((CHANNEL) == DMA_CHANNEL_1) || \
((CHANNEL) == DMA_CHANNEL_2) || \
((CHANNEL) == DMA_CHANNEL_3) || \
((CHANNEL) == DMA_CHANNEL_4) || \
((CHANNEL) == DMA_CHANNEL_5) || \
((CHANNEL) == DMA_CHANNEL_6) || \
((CHANNEL) == DMA_CHANNEL_7))

◆ IS_DMA_DIRECTION

#define IS_DMA_DIRECTION (   DIRECTION)
Value:
(((DIRECTION) == DMA_PERIPH_TO_MEMORY ) || \
((DIRECTION) == DMA_MEMORY_TO_PERIPH) || \
((DIRECTION) == DMA_MEMORY_TO_MEMORY))

◆ IS_DMA_BUFFER_SIZE

#define IS_DMA_BUFFER_SIZE (   SIZE)    (((SIZE) >= 0x01U) && ((SIZE) < 0x10000U))

◆ IS_DMA_PERIPHERAL_INC_STATE

#define IS_DMA_PERIPHERAL_INC_STATE (   STATE)
Value:
(((STATE) == DMA_PINC_ENABLE) || \
((STATE) == DMA_PINC_DISABLE))

◆ IS_DMA_MEMORY_INC_STATE

#define IS_DMA_MEMORY_INC_STATE (   STATE)
Value:
(((STATE) == DMA_MINC_ENABLE) || \
((STATE) == DMA_MINC_DISABLE))

◆ IS_DMA_PERIPHERAL_DATA_SIZE

#define IS_DMA_PERIPHERAL_DATA_SIZE (   SIZE)
Value:
(((SIZE) == DMA_PDATAALIGN_BYTE) || \
((SIZE) == DMA_PDATAALIGN_HALFWORD) || \
((SIZE) == DMA_PDATAALIGN_WORD))

◆ IS_DMA_MEMORY_DATA_SIZE

#define IS_DMA_MEMORY_DATA_SIZE (   SIZE)
Value:
(((SIZE) == DMA_MDATAALIGN_BYTE) || \
((SIZE) == DMA_MDATAALIGN_HALFWORD) || \
((SIZE) == DMA_MDATAALIGN_WORD ))

◆ IS_DMA_MODE

#define IS_DMA_MODE (   MODE)
Value:
(((MODE) == DMA_NORMAL ) || \
((MODE) == DMA_CIRCULAR) || \
((MODE) == DMA_PFCTRL))

◆ IS_DMA_PRIORITY

#define IS_DMA_PRIORITY (   PRIORITY)
Value:
(((PRIORITY) == DMA_PRIORITY_LOW ) || \
((PRIORITY) == DMA_PRIORITY_MEDIUM) || \
((PRIORITY) == DMA_PRIORITY_HIGH) || \
((PRIORITY) == DMA_PRIORITY_VERY_HIGH))

◆ IS_DMA_FIFO_MODE_STATE

#define IS_DMA_FIFO_MODE_STATE (   STATE)
Value:
(((STATE) == DMA_FIFOMODE_DISABLE ) || \
((STATE) == DMA_FIFOMODE_ENABLE))

◆ IS_DMA_FIFO_THRESHOLD

#define IS_DMA_FIFO_THRESHOLD (   THRESHOLD)
Value:
(((THRESHOLD) == DMA_FIFO_THRESHOLD_1QUARTERFULL ) || \
((THRESHOLD) == DMA_FIFO_THRESHOLD_HALFFULL) || \
((THRESHOLD) == DMA_FIFO_THRESHOLD_3QUARTERSFULL) || \
((THRESHOLD) == DMA_FIFO_THRESHOLD_FULL))

◆ IS_DMA_MEMORY_BURST

#define IS_DMA_MEMORY_BURST (   BURST)
Value:
(((BURST) == DMA_MBURST_SINGLE) || \
((BURST) == DMA_MBURST_INC4) || \
((BURST) == DMA_MBURST_INC8) || \
((BURST) == DMA_MBURST_INC16))

◆ IS_DMA_PERIPHERAL_BURST

#define IS_DMA_PERIPHERAL_BURST (   BURST)
Value:
(((BURST) == DMA_PBURST_SINGLE) || \
((BURST) == DMA_PBURST_INC4) || \
((BURST) == DMA_PBURST_INC8) || \
((BURST) == DMA_PBURST_INC16))
DMA_FIFO_THRESHOLD_HALFFULL
#define DMA_FIFO_THRESHOLD_HALFFULL
Definition: stm32f4xx_hal_dma.h:331
DMA_CHANNEL_0
#define DMA_CHANNEL_0
Definition: stm32f4xx_hal_dma.h:218
DMA_MBURST_INC16
#define DMA_MBURST_INC16
Definition: stm32f4xx_hal_dma.h:345
DMA_PRIORITY_MEDIUM
#define DMA_PRIORITY_MEDIUM
Definition: stm32f4xx_hal_dma.h:309
DMA_MINC_DISABLE
#define DMA_MINC_DISABLE
Definition: stm32f4xx_hal_dma.h:266
DMA_PINC_ENABLE
#define DMA_PINC_ENABLE
Definition: stm32f4xx_hal_dma.h:255
DMA_FIFO_THRESHOLD_1QUARTERFULL
#define DMA_FIFO_THRESHOLD_1QUARTERFULL
Definition: stm32f4xx_hal_dma.h:330
DMA_PRIORITY_VERY_HIGH
#define DMA_PRIORITY_VERY_HIGH
Definition: stm32f4xx_hal_dma.h:311
DMA_FIFO_THRESHOLD_3QUARTERSFULL
#define DMA_FIFO_THRESHOLD_3QUARTERSFULL
Definition: stm32f4xx_hal_dma.h:332
DMA_PBURST_INC4
#define DMA_PBURST_INC4
Definition: stm32f4xx_hal_dma.h:355
DMA_FIFOMODE_ENABLE
#define DMA_FIFOMODE_ENABLE
Definition: stm32f4xx_hal_dma.h:321
DMA_CHANNEL_2
#define DMA_CHANNEL_2
Definition: stm32f4xx_hal_dma.h:220
DMA_CHANNEL_1
#define DMA_CHANNEL_1
Definition: stm32f4xx_hal_dma.h:219
DMA_PINC_DISABLE
#define DMA_PINC_DISABLE
Definition: stm32f4xx_hal_dma.h:256
DMA_CHANNEL_3
#define DMA_CHANNEL_3
Definition: stm32f4xx_hal_dma.h:221
DMA_MDATAALIGN_HALFWORD
#define DMA_MDATAALIGN_HALFWORD
Definition: stm32f4xx_hal_dma.h:287
DMA_PRIORITY_HIGH
#define DMA_PRIORITY_HIGH
Definition: stm32f4xx_hal_dma.h:310
DMA_PDATAALIGN_HALFWORD
#define DMA_PDATAALIGN_HALFWORD
Definition: stm32f4xx_hal_dma.h:276
DMA_MINC_ENABLE
#define DMA_MINC_ENABLE
Definition: stm32f4xx_hal_dma.h:265
DMA_PFCTRL
#define DMA_PFCTRL
Definition: stm32f4xx_hal_dma.h:299
DMA_CIRCULAR
#define DMA_CIRCULAR
Definition: stm32f4xx_hal_dma.h:298
DMA_MDATAALIGN_WORD
#define DMA_MDATAALIGN_WORD
Definition: stm32f4xx_hal_dma.h:288
DMA_MEMORY_TO_MEMORY
#define DMA_MEMORY_TO_MEMORY
Definition: stm32f4xx_hal_dma.h:246
DMA_PBURST_INC8
#define DMA_PBURST_INC8
Definition: stm32f4xx_hal_dma.h:356
DMA_PDATAALIGN_WORD
#define DMA_PDATAALIGN_WORD
Definition: stm32f4xx_hal_dma.h:277
DMA_MDATAALIGN_BYTE
#define DMA_MDATAALIGN_BYTE
Definition: stm32f4xx_hal_dma.h:286
DMA_FIFOMODE_DISABLE
#define DMA_FIFOMODE_DISABLE
Definition: stm32f4xx_hal_dma.h:320
DMA_PBURST_SINGLE
#define DMA_PBURST_SINGLE
Definition: stm32f4xx_hal_dma.h:354
DMA_CHANNEL_5
#define DMA_CHANNEL_5
Definition: stm32f4xx_hal_dma.h:223
DMA_PERIPH_TO_MEMORY
#define DMA_PERIPH_TO_MEMORY
Definition: stm32f4xx_hal_dma.h:244
DMA_PRIORITY_LOW
#define DMA_PRIORITY_LOW
Definition: stm32f4xx_hal_dma.h:308
DMA_MBURST_INC4
#define DMA_MBURST_INC4
Definition: stm32f4xx_hal_dma.h:343
DMA_FIFO_THRESHOLD_FULL
#define DMA_FIFO_THRESHOLD_FULL
Definition: stm32f4xx_hal_dma.h:333
DMA_MBURST_SINGLE
#define DMA_MBURST_SINGLE
Definition: stm32f4xx_hal_dma.h:342
DMA_PBURST_INC16
#define DMA_PBURST_INC16
Definition: stm32f4xx_hal_dma.h:357
DMA_CHANNEL_7
#define DMA_CHANNEL_7
Definition: stm32f4xx_hal_dma.h:225
DMA_NORMAL
#define DMA_NORMAL
Definition: stm32f4xx_hal_dma.h:297
DMA_PDATAALIGN_BYTE
#define DMA_PDATAALIGN_BYTE
Definition: stm32f4xx_hal_dma.h:275
DMA_CHANNEL_6
#define DMA_CHANNEL_6
Definition: stm32f4xx_hal_dma.h:224
DMA_CHANNEL_4
#define DMA_CHANNEL_4
Definition: stm32f4xx_hal_dma.h:222
DMA_MBURST_INC8
#define DMA_MBURST_INC8
Definition: stm32f4xx_hal_dma.h:344
DMA_MEMORY_TO_PERIPH
#define DMA_MEMORY_TO_PERIPH
Definition: stm32f4xx_hal_dma.h:245