Macros
DMA Private Macros
Peripheral Driver » HAL Driver » DMA » Defines
Collaboration diagram for DMA Private Macros:

## Macros
#define | IS_DMA_ALL_P_INSTANCE(__p_instance__)
| Check if DMA instance is valid. More...
#define | IS_DMA_ALL_INSTANCE(__instance__)
| Check if DMA channel instance is valid. More...
#define | IS_DMA_ALL_REQUEST(__REQUEST__)
| Check if DMA request is valid. More...
#define | IS_DMA_DIRECTION(__DIRECTION__)
| Check if DMA direction is valid. More...
#define | IS_DMA_BUFFER_SIZE(__SIZE__) (((__SIZE__) >= 0x1) && ((__SIZE__) <= 0xFFF))
| Check if DMA buffer size is valid. More...
#define | IS_DMA_SOURCE_INC_STATE(__STATE__)
| Check if DMA source address increment state is valid. More...
#define | IS_DMA_DESTINATION_INC_STATE(__STATE__)
| Check if DMA destination address increment state is valid. More...
#define | IS_DMA_SOURCE_DATA_SIZE(__SIZE__)
| Check if DMA source data size is valid. More...
#define | IS_DMA_DESTINATION_DATA_SIZE(__SIZE__)
| Check if DMA destination data size is valid. More...
#define | IS_DMA_MODE(__MODE__)
| Check if DMA mode is valid. More...
#define | IS_DMA_PRIORITY(__PRIORITY__)
| Check if DMA priority is valid. More...
#define | IS_DMA_SRC_GATHER_EN(__VALUE__)
| Check if DMA Source Gather Enable is valid. More...
#define | IS_DMA_DST_SCATTER_EN(__VALUE__)
| Check if DMA Destination Scatter Enable is valid. More...
#define | IS_DMA_LLP_SRC_EN(__VALUE__)
| Check if DMA Source LLP Enable is valid. More...
#define | IS_DMA_LLP_DST_EN(__VALUE__)
| Check if DMA Destination LLP Enable is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_DMA_ALL_INSTANCE

#define IS_DMA_ALL_INSTANCE | ( |  | __instance__ | ) |

Value:
(((__instance__) == DMA_Channel0) || \
((__instance__) == DMA_Channel1) || \
((__instance__) == DMA_Channel2) || \
((__instance__) == DMA_Channel3) || \
((__instance__) == DMA_Channel4) || \
((__instance__) == DMA_Channel5))

Check if DMA channel instance is valid.

Parameters

  <strong>instance</strong> | DMA channel instance.

Return values

  SET | (instance is valid) or RESET (instance is invalid)

Definition at line 499 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_ALL_P_INSTANCE

#define IS_DMA_ALL_P_INSTANCE | ( |  | __p_instance__ | ) |

Value:
(((__p_instance__) == DMA0) || \
((__p_instance__) == DMA1))

Check if DMA instance is valid.

Parameters

  <strong>p_instance</strong> | DMA instance.

Return values

  SET | (p_instance is valid) or RESET (p_instance is invalid)

Definition at line 492 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_ALL_REQUEST

#define IS_DMA_ALL_REQUEST | ( |  | __REQUEST__ | ) |

Check if DMA request is valid.

Parameters

  <strong>REQUEST</strong> | DMA request.

Return values

  SET | (REQUEST is valid) or RESET (REQUEST is invalid)

Definition at line 512 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_BUFFER_SIZE

#define IS_DMA_BUFFER_SIZE | ( |  | __SIZE__ | ) | (((__SIZE__) >= 0x1) && ((__SIZE__) <= 0xFFF))

Check if DMA buffer size is valid.

Parameters

  <strong>SIZE</strong> | DMA buffer size.

Return values

  SET | (SIZE is valid) or RESET (SIZE is invalid)

Definition at line 559 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_DESTINATION_DATA_SIZE

#define IS_DMA_DESTINATION_DATA_SIZE | ( |  | __SIZE__ | ) |

Value:
(((__SIZE__) == DMA_DDATAALIGN_BYTE) || \
((__SIZE__) == DMA_DDATAALIGN_HALFWORD) || \
((__SIZE__) == DMA_DDATAALIGN_WORD ))

Check if DMA destination data size is valid.

Parameters

  <strong>SIZE</strong> | DMA destination data size.

Return values

  SET | (SIZE is valid) or RESET (SIZE is invalid)

Definition at line 589 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_DESTINATION_INC_STATE

#define IS_DMA_DESTINATION_INC_STATE | ( |  | __STATE__ | ) |

Value:
(((__STATE__) == DMA_DST_INCREMENT) || \
((__STATE__) == DMA_DST_DECREMENT) || \
((__STATE__) == DMA_DST_NO_CHANGE))

Check if DMA destination address increment state is valid.

Parameters

  <strong>STATE</strong> | DMA destination address increment state.

Return values

  SET | (STATE is valid) or RESET (STATE is invalid)

Definition at line 573 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_DIRECTION

#define IS_DMA_DIRECTION | ( |  | __DIRECTION__ | ) |

Value:
(((__DIRECTION__) == DMA_MEMORY_TO_MEMORY) || \
((__DIRECTION__) == DMA_MEMORY_TO_PERIPH) || \
((__DIRECTION__) == DMA_PERIPH_TO_MEMORY) || \
((__DIRECTION__) == DMA_PERIPH_TO_PERIPH))

Check if DMA direction is valid.

Parameters

  <strong>DIRECTION</strong> | DMA direction.

Return values

  SET | (DIRECTION is valid) or RESET (DIRECTION is invalid)

Definition at line 550 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_DST_SCATTER_EN

#define IS_DMA_DST_SCATTER_EN | ( |  | __VALUE__ | ) |

Value:
(((__VALUE__) == DMA_DST_SCATTER_DISABLE) || \
((__VALUE__) == DMA_DST_SCATTER_ENABLE))

Check if DMA Destination Scatter Enable is valid.

Parameters

  <strong>VALUE</strong> | DMA DST_SCATTER.

Return values

  SET | (VALUE is valid) or RESET (VALUE is invalid)

Definition at line 620 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_LLP_DST_EN

#define IS_DMA_LLP_DST_EN | ( |  | __VALUE__ | ) |

Value:
(((__VALUE__) ==DMA_LLP_DST_DISABLE) || \
((__VALUE__) ==DMA_LLP_DST_ENABLE))

Check if DMA Destination LLP Enable is valid.

Parameters

  <strong>VALUE</strong> | DMA LLP_DST_EN.

Return values

  SET | (VALUE is valid) or RESET (VALUE is invalid)

Definition at line 634 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_LLP_SRC_EN

#define IS_DMA_LLP_SRC_EN | ( |  | __VALUE__ | ) |

Value:
(((__VALUE__) ==DMA_LLP_SRC_DISABLE) || \
((__VALUE__) ==DMA_LLP_SRC_ENABLE))

Check if DMA Source LLP Enable is valid.

Parameters

  <strong>VALUE</strong> | DMA LLP_SRC_EN.

Return values

  SET | (VALUE is valid) or RESET (VALUE is invalid)

Definition at line 627 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_MODE

#define IS_DMA_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == DMA_NORMAL ) || \
((__MODE__) == DMA_CIRCULAR))

Check if DMA mode is valid.

Parameters

  <strong>MODE</strong> | DMA mode.

Return values

  SET | (MODE is valid) or RESET (MODE is invalid)

Definition at line 597 of file gr55xx_hal_dma.h.

## ◆ 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))

Check if DMA priority is valid.

Parameters

  <strong>PRIORITY</strong> | DMA priority.

Return values

  SET | (PRIORITY is valid) or RESET (PRIORITY is invalid)

Definition at line 604 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_SOURCE_DATA_SIZE

#define IS_DMA_SOURCE_DATA_SIZE | ( |  | __SIZE__ | ) |

Value:
(((__SIZE__) == DMA_SDATAALIGN_BYTE) || \
((__SIZE__) == DMA_SDATAALIGN_HALFWORD) || \
((__SIZE__) == DMA_SDATAALIGN_WORD))

Check if DMA source data size is valid.

Parameters

  <strong>SIZE</strong> | DMA source data size.

Return values

  SET | (SIZE is valid) or RESET (SIZE is invalid)

Definition at line 581 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_SOURCE_INC_STATE

#define IS_DMA_SOURCE_INC_STATE | ( |  | __STATE__ | ) |

Value:
(((__STATE__) == DMA_SRC_INCREMENT) || \
((__STATE__) == DMA_SRC_DECREMENT) || \
((__STATE__) == DMA_SRC_NO_CHANGE))

Check if DMA source address increment state is valid.

Parameters

  <strong>STATE</strong> | DMA source address increment state.

Return values

  SET | (STATE is valid) or RESET (STATE is invalid)

Definition at line 565 of file gr55xx_hal_dma.h.

## ◆ IS_DMA_SRC_GATHER_EN

#define IS_DMA_SRC_GATHER_EN | ( |  | __VALUE__ | ) |

Value:
(((__VALUE__) == DMA_SRC_GATHER_DISABLE) || \
((__VALUE__) == DMA_SRC_GATHER_ENABLE))

Check if DMA Source Gather Enable is valid.

Parameters

  <strong>VALUE</strong> | DMA SRC_GATHER_EN.

Return values

  SET | (VALUE is valid) or RESET (VALUE is invalid)

Definition at line 613 of file gr55xx_hal_dma.h.

DMA_Channel4
@ DMA_Channel4
Channel 4
Definition: gr55xx_hal_dma.h:99
DMA_PRIORITY_MEDIUM
#define DMA_PRIORITY_MEDIUM
Priority level : Medium
Definition: gr55xx_hal_dma.h:447
DMA_SDATAALIGN_HALFWORD
#define DMA_SDATAALIGN_HALFWORD
Source data alignment : HalfWord.
Definition: gr55xx_hal_dma.h:423
DMA_Channel1
@ DMA_Channel1
Channel 1
Definition: gr55xx_hal_dma.h:96
DMA_Channel0
@ DMA_Channel0
Channel 0
Definition: gr55xx_hal_dma.h:95
DMA_SRC_NO_CHANGE
#define DMA_SRC_NO_CHANGE
Source no change mode.
Definition: gr55xx_hal_dma.h:408
DMA_PRIORITY_VERY_HIGH
#define DMA_PRIORITY_VERY_HIGH
Priority level : Very High.
Definition: gr55xx_hal_dma.h:449
DMA_SRC_DECREMENT
#define DMA_SRC_DECREMENT
Source decrement mode.
Definition: gr55xx_hal_dma.h:407
DMA_DDATAALIGN_WORD
#define DMA_DDATAALIGN_WORD
Destination data alignment : Word
Definition: gr55xx_hal_dma.h:432
DMA_Channel5
@ DMA_Channel5
Channel 5
Definition: gr55xx_hal_dma.h:100
DMA_DDATAALIGN_BYTE
#define DMA_DDATAALIGN_BYTE
Destination data alignment : Byte
Definition: gr55xx_hal_dma.h:430
DMA_SRC_GATHER_ENABLE
#define DMA_SRC_GATHER_ENABLE
Source Gather Enable.
Definition: gr55xx_hal_dma.h:477
DMA_Channel2
@ DMA_Channel2
Channel 2
Definition: gr55xx_hal_dma.h:97
DMA_PERIPH_TO_PERIPH
#define DMA_PERIPH_TO_PERIPH
Peripheral to Peripheral direction.
Definition: gr55xx_hal_dma.h:400
DMA_PRIORITY_HIGH
#define DMA_PRIORITY_HIGH
Priority level : High
Definition: gr55xx_hal_dma.h:448
DMA_SRC_INCREMENT
#define DMA_SRC_INCREMENT
Source increment mode.
Definition: gr55xx_hal_dma.h:406
DMA_SDATAALIGN_BYTE
#define DMA_SDATAALIGN_BYTE
Source data alignment : Byte
Definition: gr55xx_hal_dma.h:422
DMA_DST_NO_CHANGE
#define DMA_DST_NO_CHANGE
Destination no change mode.
Definition: gr55xx_hal_dma.h:416
DMA_LLP_DST_DISABLE
#define DMA_LLP_DST_DISABLE
Destination LLP Disable.
Definition: gr55xx_hal_dma.h:457
DMA_CIRCULAR
#define DMA_CIRCULAR
Circular Mode
Definition: gr55xx_hal_dma.h:439
DMA_MEMORY_TO_MEMORY
#define DMA_MEMORY_TO_MEMORY
Memory to memory direction
Definition: gr55xx_hal_dma.h:397
DMA_DST_DECREMENT
#define DMA_DST_DECREMENT
Destination decrement mode.
Definition: gr55xx_hal_dma.h:415
DMA_SDATAALIGN_WORD
#define DMA_SDATAALIGN_WORD
Source data alignment : Word
Definition: gr55xx_hal_dma.h:424
DMA_Channel3
@ DMA_Channel3
Channel 3
Definition: gr55xx_hal_dma.h:98
DMA_DST_SCATTER_ENABLE
#define DMA_DST_SCATTER_ENABLE
Destination Scatter Enable.
Definition: gr55xx_hal_dma.h:470
DMA_PERIPH_TO_MEMORY
#define DMA_PERIPH_TO_MEMORY
Peripheral to memory direction.
Definition: gr55xx_hal_dma.h:399
DMA_PRIORITY_LOW
#define DMA_PRIORITY_LOW
Priority level : Low
Definition: gr55xx_hal_dma.h:446
DMA_LLP_DST_ENABLE
#define DMA_LLP_DST_ENABLE
Destination LLP Enable.
Definition: gr55xx_hal_dma.h:456
DMA_NORMAL
#define DMA_NORMAL
Normal Mode
Definition: gr55xx_hal_dma.h:438
DMA_DST_SCATTER_DISABLE
#define DMA_DST_SCATTER_DISABLE
Destination Scatter Disable.
Definition: gr55xx_hal_dma.h:471
DMA_MEMORY_TO_PERIPH
#define DMA_MEMORY_TO_PERIPH
Memory to peripheral direction.
Definition: gr55xx_hal_dma.h:398
DMA_LLP_SRC_DISABLE
#define DMA_LLP_SRC_DISABLE
Source LLP Disable.
Definition: gr55xx_hal_dma.h:464
DMA_DST_INCREMENT
#define DMA_DST_INCREMENT
Destination increment mode.
Definition: gr55xx_hal_dma.h:414
DMA_DDATAALIGN_HALFWORD
#define DMA_DDATAALIGN_HALFWORD
Destination data alignment : HalfWord.
Definition: gr55xx_hal_dma.h:431
DMA_SRC_GATHER_DISABLE
#define DMA_SRC_GATHER_DISABLE
Source Gather Disable.
Definition: gr55xx_hal_dma.h:478
DMA_LLP_SRC_ENABLE
#define DMA_LLP_SRC_ENABLE
Source LLP Enable.
Definition: gr55xx_hal_dma.h:463