STM32F4xx_HAL_Driver  1.8.3
DMA Exported Init structure
+ Collaboration diagram for DMA Exported Init structure:

Data Structures

struct  LL_DMA_InitTypeDef
 

Detailed Description


Data Structure Documentation

◆ LL_DMA_InitTypeDef

struct LL_DMA_InitTypeDef

Definition at line 77 of file stm32f4xx_ll_dma.h.

Data Fields
uint32_t Channel

Specifies the peripheral channel. This parameter can be a value of CHANNEL

This feature can be modified afterwards using unitary function LL_DMA_SetChannelSelection().

uint32_t Direction

Specifies if the data will be transferred from memory to peripheral, from memory to memory or from peripheral to memory. This parameter can be a value of DIRECTION

This feature can be modified afterwards using unitary function LL_DMA_SetDataTransferDirection().

uint32_t FIFOMode

Specifies if the FIFO mode or Direct mode will be used for the specified stream. This parameter can be a value of DMA_LL_FIFOMODE

Note
The Direct mode (FIFO mode disabled) cannot be used if the memory-to-memory data transfer is configured on the selected stream

This feature can be modified afterwards using unitary functions LL_DMA_EnableFifoMode() or LL_DMA_EnableFifoMode() .

uint32_t FIFOThreshold

Specifies the FIFO threshold level. This parameter can be a value of FIFOTHRESHOLD

This feature can be modified afterwards using unitary function LL_DMA_SetFIFOThreshold().

uint32_t MemBurst

Specifies the Burst transfer configuration for the memory transfers. It specifies the amount of data to be transferred in a single non interruptible transaction. This parameter can be a value of MBURST

Note
The burst mode is possible only if the address Increment mode is enabled.

This feature can be modified afterwards using unitary function LL_DMA_SetMemoryBurstxfer().

uint32_t MemoryOrM2MDstAddress

Specifies the memory base address for DMA transfer or as Destination base address in case of memory to memory transfer direction.

This parameter must be a value between Min_Data = 0 and Max_Data = 0xFFFFFFFF.

uint32_t MemoryOrM2MDstDataSize

Specifies the Memory data size alignment or Destination data size alignment (byte, half word, word) in case of memory to memory transfer direction. This parameter can be a value of MDATAALIGN

This feature can be modified afterwards using unitary function LL_DMA_SetMemorySize().

uint32_t MemoryOrM2MDstIncMode

Specifies whether the Memory address or Destination address in case of memory to memory transfer direction is incremented or not. This parameter can be a value of MEMORY

This feature can be modified afterwards using unitary function LL_DMA_SetMemoryIncMode().

uint32_t Mode

Specifies the normal or circular operation mode. This parameter can be a value of MODE

Note
The circular buffer mode cannot be used if the memory to memory data transfer direction is configured on the selected Stream

This feature can be modified afterwards using unitary function LL_DMA_SetMode().

uint32_t NbData

Specifies the number of data to transfer, in data unit. The data unit is equal to the source buffer configuration set in PeripheralSize or MemorySize parameters depending in the transfer direction. This parameter must be a value between Min_Data = 0 and Max_Data = 0x0000FFFF

This feature can be modified afterwards using unitary function LL_DMA_SetDataLength().

uint32_t PeriphBurst

Specifies the Burst transfer configuration for the peripheral transfers. It specifies the amount of data to be transferred in a single non interruptible transaction. This parameter can be a value of PBURST

Note
The burst mode is possible only if the address Increment mode is enabled.

This feature can be modified afterwards using unitary function LL_DMA_SetPeriphBurstxfer().

uint32_t PeriphOrM2MSrcAddress

Specifies the peripheral base address for DMA transfer or as Source base address in case of memory to memory transfer direction.

This parameter must be a value between Min_Data = 0 and Max_Data = 0xFFFFFFFF.

uint32_t PeriphOrM2MSrcDataSize

Specifies the Peripheral data size alignment or Source data size alignment (byte, half word, word) in case of memory to memory transfer direction. This parameter can be a value of PDATAALIGN

This feature can be modified afterwards using unitary function LL_DMA_SetPeriphSize().

uint32_t PeriphOrM2MSrcIncMode

Specifies whether the Peripheral address or Source address in case of memory to memory transfer direction is incremented or not. This parameter can be a value of PERIPH

This feature can be modified afterwards using unitary function LL_DMA_SetPeriphIncMode().

uint32_t Priority

Specifies the channel priority level. This parameter can be a value of PRIORITY

This feature can be modified afterwards using unitary function LL_DMA_SetStreamPriorityLevel().