STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for Configuration:

Functions

__STATIC_INLINE void LL_DMA_EnableStream (DMA_TypeDef *DMAx, uint32_t Stream)
 Enable DMA stream. @rmtoll CR EN LL_DMA_EnableStream. More...
 
__STATIC_INLINE void LL_DMA_DisableStream (DMA_TypeDef *DMAx, uint32_t Stream)
 Disable DMA stream. @rmtoll CR EN LL_DMA_DisableStream. More...
 
__STATIC_INLINE uint32_t LL_DMA_IsEnabledStream (DMA_TypeDef *DMAx, uint32_t Stream)
 Check if DMA stream is enabled or disabled. @rmtoll CR EN LL_DMA_IsEnabledStream. More...
 
__STATIC_INLINE void LL_DMA_ConfigTransfer (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Configuration)
 Configure all parameters linked to DMA transfer. @rmtoll CR DIR LL_DMA_ConfigTransfer
CR CIRC LL_DMA_ConfigTransfer
CR PINC LL_DMA_ConfigTransfer
CR MINC LL_DMA_ConfigTransfer
CR PSIZE LL_DMA_ConfigTransfer
CR MSIZE LL_DMA_ConfigTransfer
CR PL LL_DMA_ConfigTransfer
CR PFCTRL LL_DMA_ConfigTransfer. More...
 
__STATIC_INLINE void LL_DMA_SetDataTransferDirection (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Direction)
 Set Data transfer direction (read from peripheral or from memory). @rmtoll CR DIR LL_DMA_SetDataTransferDirection. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetDataTransferDirection (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Data transfer direction (read from peripheral or from memory). @rmtoll CR DIR LL_DMA_GetDataTransferDirection. More...
 
__STATIC_INLINE void LL_DMA_SetMode (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Mode)
 Set DMA mode normal, circular or peripheral flow control. @rmtoll CR CIRC LL_DMA_SetMode
CR PFCTRL LL_DMA_SetMode. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Get DMA mode normal, circular or peripheral flow control. @rmtoll CR CIRC LL_DMA_GetMode
CR PFCTRL LL_DMA_GetMode. More...
 
__STATIC_INLINE void LL_DMA_SetPeriphIncMode (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t IncrementMode)
 Set Peripheral increment mode. @rmtoll CR PINC LL_DMA_SetPeriphIncMode. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetPeriphIncMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Peripheral increment mode. @rmtoll CR PINC LL_DMA_GetPeriphIncMode. More...
 
__STATIC_INLINE void LL_DMA_SetMemoryIncMode (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t IncrementMode)
 Set Memory increment mode. @rmtoll CR MINC LL_DMA_SetMemoryIncMode. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetMemoryIncMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Memory increment mode. @rmtoll CR MINC LL_DMA_GetMemoryIncMode. More...
 
__STATIC_INLINE void LL_DMA_SetPeriphSize (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Size)
 Set Peripheral size. @rmtoll CR PSIZE LL_DMA_SetPeriphSize. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetPeriphSize (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Peripheral size. @rmtoll CR PSIZE LL_DMA_GetPeriphSize. More...
 
__STATIC_INLINE void LL_DMA_SetMemorySize (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Size)
 Set Memory size. @rmtoll CR MSIZE LL_DMA_SetMemorySize. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetMemorySize (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Memory size. @rmtoll CR MSIZE LL_DMA_GetMemorySize. More...
 
__STATIC_INLINE void LL_DMA_SetIncOffsetSize (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t OffsetSize)
 Set Peripheral increment offset size. @rmtoll CR PINCOS LL_DMA_SetIncOffsetSize. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetIncOffsetSize (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Peripheral increment offset size. @rmtoll CR PINCOS LL_DMA_GetIncOffsetSize. More...
 
__STATIC_INLINE void LL_DMA_SetStreamPriorityLevel (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Priority)
 Set Stream priority level. @rmtoll CR PL LL_DMA_SetStreamPriorityLevel. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetStreamPriorityLevel (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Stream priority level. @rmtoll CR PL LL_DMA_GetStreamPriorityLevel. More...
 
__STATIC_INLINE void LL_DMA_SetDataLength (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t NbData)
 Set Number of data to transfer. @rmtoll NDTR NDT LL_DMA_SetDataLength. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetDataLength (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Number of data to transfer. @rmtoll NDTR NDT LL_DMA_GetDataLength. More...
 
__STATIC_INLINE void LL_DMA_SetChannelSelection (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Channel)
 Select Channel number associated to the Stream. @rmtoll CR CHSEL LL_DMA_SetChannelSelection. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetChannelSelection (DMA_TypeDef *DMAx, uint32_t Stream)
 Get the Channel number associated to the Stream. @rmtoll CR CHSEL LL_DMA_GetChannelSelection. More...
 
__STATIC_INLINE void LL_DMA_SetMemoryBurstxfer (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Mburst)
 Set Memory burst transfer configuration. @rmtoll CR MBURST LL_DMA_SetMemoryBurstxfer. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetMemoryBurstxfer (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Memory burst transfer configuration. @rmtoll CR MBURST LL_DMA_GetMemoryBurstxfer. More...
 
__STATIC_INLINE void LL_DMA_SetPeriphBurstxfer (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Pburst)
 Set Peripheral burst transfer configuration. @rmtoll CR PBURST LL_DMA_SetPeriphBurstxfer. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetPeriphBurstxfer (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Peripheral burst transfer configuration. @rmtoll CR PBURST LL_DMA_GetPeriphBurstxfer. More...
 
__STATIC_INLINE void LL_DMA_SetCurrentTargetMem (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t CurrentMemory)
 Set Current target (only in double buffer mode) to Memory 1 or Memory 0. @rmtoll CR CT LL_DMA_SetCurrentTargetMem. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetCurrentTargetMem (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Current target (only in double buffer mode). @rmtoll CR CT LL_DMA_GetCurrentTargetMem. More...
 
__STATIC_INLINE void LL_DMA_EnableDoubleBufferMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Enable the double buffer mode. @rmtoll CR DBM LL_DMA_EnableDoubleBufferMode. More...
 
__STATIC_INLINE void LL_DMA_DisableDoubleBufferMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Disable the double buffer mode. @rmtoll CR DBM LL_DMA_DisableDoubleBufferMode. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetFIFOStatus (DMA_TypeDef *DMAx, uint32_t Stream)
 Get FIFO status. @rmtoll FCR FS LL_DMA_GetFIFOStatus. More...
 
__STATIC_INLINE void LL_DMA_DisableFifoMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Disable Fifo mode. @rmtoll FCR DMDIS LL_DMA_DisableFifoMode. More...
 
__STATIC_INLINE void LL_DMA_EnableFifoMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Enable Fifo mode. @rmtoll FCR DMDIS LL_DMA_EnableFifoMode. More...
 
__STATIC_INLINE void LL_DMA_SetFIFOThreshold (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Threshold)
 Select FIFO threshold. @rmtoll FCR FTH LL_DMA_SetFIFOThreshold. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetFIFOThreshold (DMA_TypeDef *DMAx, uint32_t Stream)
 Get FIFO threshold. @rmtoll FCR FTH LL_DMA_GetFIFOThreshold. More...
 
__STATIC_INLINE void LL_DMA_ConfigFifo (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t FifoMode, uint32_t FifoThreshold)
 Configure the FIFO . @rmtoll FCR FTH LL_DMA_ConfigFifo
FCR DMDIS LL_DMA_ConfigFifo. More...
 
__STATIC_INLINE void LL_DMA_ConfigAddresses (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t SrcAddress, uint32_t DstAddress, uint32_t Direction)
 Configure the Source and Destination addresses. More...
 
__STATIC_INLINE void LL_DMA_SetMemoryAddress (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t MemoryAddress)
 Set the Memory address. @rmtoll M0AR M0A LL_DMA_SetMemoryAddress. More...
 
__STATIC_INLINE void LL_DMA_SetPeriphAddress (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t PeriphAddress)
 Set the Peripheral address. @rmtoll PAR PA LL_DMA_SetPeriphAddress. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetMemoryAddress (DMA_TypeDef *DMAx, uint32_t Stream)
 Get the Memory address. @rmtoll M0AR M0A LL_DMA_GetMemoryAddress. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetPeriphAddress (DMA_TypeDef *DMAx, uint32_t Stream)
 Get the Peripheral address. @rmtoll PAR PA LL_DMA_GetPeriphAddress. More...
 
__STATIC_INLINE void LL_DMA_SetM2MSrcAddress (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t MemoryAddress)
 Set the Memory to Memory Source address. @rmtoll PAR PA LL_DMA_SetM2MSrcAddress. More...
 
__STATIC_INLINE void LL_DMA_SetM2MDstAddress (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t MemoryAddress)
 Set the Memory to Memory Destination address. @rmtoll M0AR M0A LL_DMA_SetM2MDstAddress. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetM2MSrcAddress (DMA_TypeDef *DMAx, uint32_t Stream)
 Get the Memory to Memory Source address. @rmtoll PAR PA LL_DMA_GetM2MSrcAddress. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetM2MDstAddress (DMA_TypeDef *DMAx, uint32_t Stream)
 Get the Memory to Memory Destination address. @rmtoll M0AR M0A LL_DMA_GetM2MDstAddress. More...
 
__STATIC_INLINE void LL_DMA_SetMemory1Address (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Address)
 Set Memory 1 address (used in case of Double buffer mode). @rmtoll M1AR M1A LL_DMA_SetMemory1Address. More...
 
__STATIC_INLINE uint32_t LL_DMA_GetMemory1Address (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Memory 1 address (used in case of Double buffer mode). @rmtoll M1AR M1A LL_DMA_GetMemory1Address. More...
 

Detailed Description

Function Documentation

◆ LL_DMA_ConfigAddresses()

__STATIC_INLINE void LL_DMA_ConfigAddresses ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  SrcAddress,
uint32_t  DstAddress,
uint32_t  Direction 
)

Configure the Source and Destination addresses.

Note
This API must not be called when the DMA stream is enabled. @rmtoll M0AR M0A LL_DMA_ConfigAddresses
PAR PA LL_DMA_ConfigAddresses
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
SrcAddressBetween 0 to 0xFFFFFFFF
DstAddressBetween 0 to 0xFFFFFFFF
DirectionThis parameter can be one of the following values:
  • LL_DMA_DIRECTION_PERIPH_TO_MEMORY
  • LL_DMA_DIRECTION_MEMORY_TO_PERIPH
  • LL_DMA_DIRECTION_MEMORY_TO_MEMORY
Return values
None

Definition at line 1402 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_ConfigFifo()

__STATIC_INLINE void LL_DMA_ConfigFifo ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  FifoMode,
uint32_t  FifoThreshold 
)

Configure the FIFO . @rmtoll FCR FTH LL_DMA_ConfigFifo
FCR DMDIS LL_DMA_ConfigFifo.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
FifoModeThis parameter can be one of the following values:
  • LL_DMA_FIFOMODE_ENABLE
  • LL_DMA_FIFOMODE_DISABLE
FifoThresholdThis parameter can be one of the following values:
  • LL_DMA_FIFOTHRESHOLD_1_4
  • LL_DMA_FIFOTHRESHOLD_1_2
  • LL_DMA_FIFOTHRESHOLD_3_4
  • LL_DMA_FIFOTHRESHOLD_FULL
Return values
None

Definition at line 1374 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_ConfigTransfer()

__STATIC_INLINE void LL_DMA_ConfigTransfer ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  Configuration 
)

Configure all parameters linked to DMA transfer. @rmtoll CR DIR LL_DMA_ConfigTransfer
CR CIRC LL_DMA_ConfigTransfer
CR PINC LL_DMA_ConfigTransfer
CR MINC LL_DMA_ConfigTransfer
CR PSIZE LL_DMA_ConfigTransfer
CR MSIZE LL_DMA_ConfigTransfer
CR PL LL_DMA_ConfigTransfer
CR PFCTRL LL_DMA_ConfigTransfer.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
ConfigurationThis parameter must be a combination of all the following values:
  • LL_DMA_DIRECTION_PERIPH_TO_MEMORY or LL_DMA_DIRECTION_MEMORY_TO_PERIPH or LL_DMA_DIRECTION_MEMORY_TO_MEMORY
  • LL_DMA_MODE_NORMAL or LL_DMA_MODE_CIRCULAR or LL_DMA_MODE_PFCTRL
  • LL_DMA_PERIPH_INCREMENT or LL_DMA_PERIPH_NOINCREMENT
  • LL_DMA_MEMORY_INCREMENT or LL_DMA_MEMORY_NOINCREMENT
  • LL_DMA_PDATAALIGN_BYTE or LL_DMA_PDATAALIGN_HALFWORD or LL_DMA_PDATAALIGN_WORD
  • LL_DMA_MDATAALIGN_BYTE or LL_DMA_MDATAALIGN_HALFWORD or LL_DMA_MDATAALIGN_WORD
  • LL_DMA_PRIORITY_LOW or LL_DMA_PRIORITY_MEDIUM or LL_DMA_PRIORITY_HIGH or LL_DMA_PRIORITY_VERYHIGH
Return values
None

Definition at line 569 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_DisableDoubleBufferMode()

__STATIC_INLINE void LL_DMA_DisableDoubleBufferMode ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Disable the double buffer mode. @rmtoll CR DBM LL_DMA_DisableDoubleBufferMode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
None

Definition at line 1230 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_DisableFifoMode()

__STATIC_INLINE void LL_DMA_DisableFifoMode ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Disable Fifo mode. @rmtoll FCR DMDIS LL_DMA_DisableFifoMode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
None

Definition at line 1276 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_DisableStream()

__STATIC_INLINE void LL_DMA_DisableStream ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Disable DMA stream. @rmtoll CR EN LL_DMA_DisableStream.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
None

Definition at line 514 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_EnableDoubleBufferMode()

__STATIC_INLINE void LL_DMA_EnableDoubleBufferMode ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Enable the double buffer mode. @rmtoll CR DBM LL_DMA_EnableDoubleBufferMode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
None

Definition at line 1210 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_EnableFifoMode()

__STATIC_INLINE void LL_DMA_EnableFifoMode ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Enable Fifo mode. @rmtoll FCR DMDIS LL_DMA_EnableFifoMode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
None

Definition at line 1296 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_EnableStream()

__STATIC_INLINE void LL_DMA_EnableStream ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Enable DMA stream. @rmtoll CR EN LL_DMA_EnableStream.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
None

Definition at line 494 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetChannelSelection()

__STATIC_INLINE uint32_t LL_DMA_GetChannelSelection ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get the Channel number associated to the Stream. @rmtoll CR CHSEL LL_DMA_GetChannelSelection.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_CHANNEL_0
  • LL_DMA_CHANNEL_1
  • LL_DMA_CHANNEL_2
  • LL_DMA_CHANNEL_3
  • LL_DMA_CHANNEL_4
  • LL_DMA_CHANNEL_5
  • LL_DMA_CHANNEL_6
  • LL_DMA_CHANNEL_7

Definition at line 1047 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetCurrentTargetMem()

__STATIC_INLINE uint32_t LL_DMA_GetCurrentTargetMem ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Current target (only in double buffer mode). @rmtoll CR CT LL_DMA_GetCurrentTargetMem.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_CURRENTTARGETMEM0
  • LL_DMA_CURRENTTARGETMEM1

Definition at line 1190 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetDataLength()

__STATIC_INLINE uint32_t LL_DMA_GetDataLength ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Number of data to transfer. @rmtoll NDTR NDT LL_DMA_GetDataLength.

Note
Once the stream is enabled, the return value indicate the remaining bytes to be transmitted.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Between0 to 0xFFFFFFFF

Definition at line 990 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetDataTransferDirection()

__STATIC_INLINE uint32_t LL_DMA_GetDataTransferDirection ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Data transfer direction (read from peripheral or from memory). @rmtoll CR DIR LL_DMA_GetDataTransferDirection.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_DIRECTION_PERIPH_TO_MEMORY
  • LL_DMA_DIRECTION_MEMORY_TO_PERIPH
  • LL_DMA_DIRECTION_MEMORY_TO_MEMORY

Definition at line 618 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetFIFOStatus()

__STATIC_INLINE uint32_t LL_DMA_GetFIFOStatus ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get FIFO status. @rmtoll FCR FS LL_DMA_GetFIFOStatus.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_FIFOSTATUS_0_25
  • LL_DMA_FIFOSTATUS_25_50
  • LL_DMA_FIFOSTATUS_50_75
  • LL_DMA_FIFOSTATUS_75_100
  • LL_DMA_FIFOSTATUS_EMPTY
  • LL_DMA_FIFOSTATUS_FULL

Definition at line 1256 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetFIFOThreshold()

__STATIC_INLINE uint32_t LL_DMA_GetFIFOThreshold ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get FIFO threshold. @rmtoll FCR FTH LL_DMA_GetFIFOThreshold.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_FIFOTHRESHOLD_1_4
  • LL_DMA_FIFOTHRESHOLD_1_2
  • LL_DMA_FIFOTHRESHOLD_3_4
  • LL_DMA_FIFOTHRESHOLD_FULL

Definition at line 1345 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetIncOffsetSize()

__STATIC_INLINE uint32_t LL_DMA_GetIncOffsetSize ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Peripheral increment offset size. @rmtoll CR PINCOS LL_DMA_GetIncOffsetSize.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_OFFSETSIZE_PSIZE
  • LL_DMA_OFFSETSIZE_FIXEDTO4

Definition at line 896 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetM2MDstAddress()

__STATIC_INLINE uint32_t LL_DMA_GetM2MDstAddress ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get the Memory to Memory Destination address. @rmtoll M0AR M0A LL_DMA_GetM2MDstAddress.

Note
Interface used for direction LL_DMA_DIRECTION_MEMORY_TO_MEMORY only.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Between0 to 0xFFFFFFFF

Definition at line 1589 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetM2MSrcAddress()

__STATIC_INLINE uint32_t LL_DMA_GetM2MSrcAddress ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get the Memory to Memory Source address. @rmtoll PAR PA LL_DMA_GetM2MSrcAddress.

Note
Interface used for direction LL_DMA_DIRECTION_MEMORY_TO_MEMORY only.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Between0 to 0xFFFFFFFF

Definition at line 1568 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetMemory1Address()

__STATIC_INLINE uint32_t LL_DMA_GetMemory1Address ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Memory 1 address (used in case of Double buffer mode). @rmtoll M1AR M1A LL_DMA_GetMemory1Address.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Between0 to 0xFFFFFFFF

Definition at line 1630 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetMemoryAddress()

__STATIC_INLINE uint32_t LL_DMA_GetMemoryAddress ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get the Memory address. @rmtoll M0AR M0A LL_DMA_GetMemoryAddress.

Note
Interface used for direction LL_DMA_DIRECTION_PERIPH_TO_MEMORY or LL_DMA_DIRECTION_MEMORY_TO_PERIPH only.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Between0 to 0xFFFFFFFF

Definition at line 1480 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetMemoryBurstxfer()

__STATIC_INLINE uint32_t LL_DMA_GetMemoryBurstxfer ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Memory burst transfer configuration. @rmtoll CR MBURST LL_DMA_GetMemoryBurstxfer.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_MBURST_SINGLE
  • LL_DMA_MBURST_INC4
  • LL_DMA_MBURST_INC8
  • LL_DMA_MBURST_INC16

Definition at line 1096 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetMemoryIncMode()

__STATIC_INLINE uint32_t LL_DMA_GetMemoryIncMode ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Memory increment mode. @rmtoll CR MINC LL_DMA_GetMemoryIncMode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_MEMORY_NOINCREMENT
  • LL_DMA_MEMORY_INCREMENT

Definition at line 757 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetMemorySize()

__STATIC_INLINE uint32_t LL_DMA_GetMemorySize ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Memory size. @rmtoll CR MSIZE LL_DMA_GetMemorySize.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_MDATAALIGN_BYTE
  • LL_DMA_MDATAALIGN_HALFWORD
  • LL_DMA_MDATAALIGN_WORD

Definition at line 851 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetMode()

__STATIC_INLINE uint32_t LL_DMA_GetMode ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get DMA mode normal, circular or peripheral flow control. @rmtoll CR CIRC LL_DMA_GetMode
CR PFCTRL LL_DMA_GetMode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_MODE_NORMAL
  • LL_DMA_MODE_CIRCULAR
  • LL_DMA_MODE_PFCTRL

Definition at line 667 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetPeriphAddress()

__STATIC_INLINE uint32_t LL_DMA_GetPeriphAddress ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get the Peripheral address. @rmtoll PAR PA LL_DMA_GetPeriphAddress.

Note
Interface used for direction LL_DMA_DIRECTION_PERIPH_TO_MEMORY or LL_DMA_DIRECTION_MEMORY_TO_PERIPH only.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Between0 to 0xFFFFFFFF

Definition at line 1501 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetPeriphBurstxfer()

__STATIC_INLINE uint32_t LL_DMA_GetPeriphBurstxfer ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Peripheral burst transfer configuration. @rmtoll CR PBURST LL_DMA_GetPeriphBurstxfer.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_PBURST_SINGLE
  • LL_DMA_PBURST_INC4
  • LL_DMA_PBURST_INC8
  • LL_DMA_PBURST_INC16

Definition at line 1145 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetPeriphIncMode()

__STATIC_INLINE uint32_t LL_DMA_GetPeriphIncMode ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Peripheral increment mode. @rmtoll CR PINC LL_DMA_GetPeriphIncMode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_PERIPH_NOINCREMENT
  • LL_DMA_PERIPH_INCREMENT

Definition at line 712 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetPeriphSize()

__STATIC_INLINE uint32_t LL_DMA_GetPeriphSize ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Peripheral size. @rmtoll CR PSIZE LL_DMA_GetPeriphSize.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_PDATAALIGN_BYTE
  • LL_DMA_PDATAALIGN_HALFWORD
  • LL_DMA_PDATAALIGN_WORD

Definition at line 804 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_GetStreamPriorityLevel()

__STATIC_INLINE uint32_t LL_DMA_GetStreamPriorityLevel ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Get Stream priority level. @rmtoll CR PL LL_DMA_GetStreamPriorityLevel.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Returnedvalue can be one of the following values:
  • LL_DMA_PRIORITY_LOW
  • LL_DMA_PRIORITY_MEDIUM
  • LL_DMA_PRIORITY_HIGH
  • LL_DMA_PRIORITY_VERYHIGH

Definition at line 945 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_IsEnabledStream()

__STATIC_INLINE uint32_t LL_DMA_IsEnabledStream ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

Check if DMA stream is enabled or disabled. @rmtoll CR EN LL_DMA_IsEnabledStream.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
Return values
Stateof bit (1 or 0).

Definition at line 534 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetChannelSelection()

__STATIC_INLINE void LL_DMA_SetChannelSelection ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  Channel 
)

Select Channel number associated to the Stream. @rmtoll CR CHSEL LL_DMA_SetChannelSelection.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
ChannelThis parameter can be one of the following values:
  • LL_DMA_CHANNEL_0
  • LL_DMA_CHANNEL_1
  • LL_DMA_CHANNEL_2
  • LL_DMA_CHANNEL_3
  • LL_DMA_CHANNEL_4
  • LL_DMA_CHANNEL_5
  • LL_DMA_CHANNEL_6
  • LL_DMA_CHANNEL_7
Return values
None

Definition at line 1019 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetCurrentTargetMem()

__STATIC_INLINE void LL_DMA_SetCurrentTargetMem ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  CurrentMemory 
)

Set Current target (only in double buffer mode) to Memory 1 or Memory 0. @rmtoll CR CT LL_DMA_SetCurrentTargetMem.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
CurrentMemoryThis parameter can be one of the following values:
  • LL_DMA_CURRENTTARGETMEM0
  • LL_DMA_CURRENTTARGETMEM1
Return values
None

Definition at line 1168 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetDataLength()

__STATIC_INLINE void LL_DMA_SetDataLength ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  NbData 
)

Set Number of data to transfer. @rmtoll NDTR NDT LL_DMA_SetDataLength.

Note
This action has no effect if stream is enabled.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
NbDataBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 968 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetDataTransferDirection()

__STATIC_INLINE void LL_DMA_SetDataTransferDirection ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  Direction 
)

Set Data transfer direction (read from peripheral or from memory). @rmtoll CR DIR LL_DMA_SetDataTransferDirection.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
DirectionThis parameter can be one of the following values:
  • LL_DMA_DIRECTION_PERIPH_TO_MEMORY
  • LL_DMA_DIRECTION_MEMORY_TO_PERIPH
  • LL_DMA_DIRECTION_MEMORY_TO_MEMORY
Return values
None

Definition at line 595 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetFIFOThreshold()

__STATIC_INLINE void LL_DMA_SetFIFOThreshold ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  Threshold 
)

Select FIFO threshold. @rmtoll FCR FTH LL_DMA_SetFIFOThreshold.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
ThresholdThis parameter can be one of the following values:
  • LL_DMA_FIFOTHRESHOLD_1_4
  • LL_DMA_FIFOTHRESHOLD_1_2
  • LL_DMA_FIFOTHRESHOLD_3_4
  • LL_DMA_FIFOTHRESHOLD_FULL
Return values
None

Definition at line 1321 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetIncOffsetSize()

__STATIC_INLINE void LL_DMA_SetIncOffsetSize ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  OffsetSize 
)

Set Peripheral increment offset size. @rmtoll CR PINCOS LL_DMA_SetIncOffsetSize.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
OffsetSizeThis parameter can be one of the following values:
  • LL_DMA_OFFSETSIZE_PSIZE
  • LL_DMA_OFFSETSIZE_FIXEDTO4
Return values
None

Definition at line 874 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetM2MDstAddress()

__STATIC_INLINE void LL_DMA_SetM2MDstAddress ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  MemoryAddress 
)

Set the Memory to Memory Destination address. @rmtoll M0AR M0A LL_DMA_SetM2MDstAddress.

Note
Interface used for direction LL_DMA_DIRECTION_MEMORY_TO_MEMORY only.
This API must not be called when the DMA channel is enabled.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
MemoryAddressBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 1547 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetM2MSrcAddress()

__STATIC_INLINE void LL_DMA_SetM2MSrcAddress ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  MemoryAddress 
)

Set the Memory to Memory Source address. @rmtoll PAR PA LL_DMA_SetM2MSrcAddress.

Note
Interface used for direction LL_DMA_DIRECTION_MEMORY_TO_MEMORY only.
This API must not be called when the DMA channel is enabled.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
MemoryAddressBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 1524 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetMemory1Address()

__STATIC_INLINE void LL_DMA_SetMemory1Address ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  Address 
)

Set Memory 1 address (used in case of Double buffer mode). @rmtoll M1AR M1A LL_DMA_SetMemory1Address.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
AddressBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 1610 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetMemoryAddress()

__STATIC_INLINE void LL_DMA_SetMemoryAddress ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  MemoryAddress 
)

Set the Memory address. @rmtoll M0AR M0A LL_DMA_SetMemoryAddress.

Note
Interface used for direction LL_DMA_DIRECTION_PERIPH_TO_MEMORY or LL_DMA_DIRECTION_MEMORY_TO_PERIPH only.
This API must not be called when the DMA channel is enabled.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
MemoryAddressBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 1436 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetMemoryBurstxfer()

__STATIC_INLINE void LL_DMA_SetMemoryBurstxfer ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  Mburst 
)

Set Memory burst transfer configuration. @rmtoll CR MBURST LL_DMA_SetMemoryBurstxfer.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
MburstThis parameter can be one of the following values:
  • LL_DMA_MBURST_SINGLE
  • LL_DMA_MBURST_INC4
  • LL_DMA_MBURST_INC8
  • LL_DMA_MBURST_INC16
Return values
None

Definition at line 1072 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetMemoryIncMode()

__STATIC_INLINE void LL_DMA_SetMemoryIncMode ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  IncrementMode 
)

Set Memory increment mode. @rmtoll CR MINC LL_DMA_SetMemoryIncMode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
IncrementModeThis parameter can be one of the following values:
  • LL_DMA_MEMORY_NOINCREMENT
  • LL_DMA_MEMORY_INCREMENT
Return values
None

Definition at line 735 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetMemorySize()

__STATIC_INLINE void LL_DMA_SetMemorySize ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  Size 
)

Set Memory size. @rmtoll CR MSIZE LL_DMA_SetMemorySize.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
SizeThis parameter can be one of the following values:
  • LL_DMA_MDATAALIGN_BYTE
  • LL_DMA_MDATAALIGN_HALFWORD
  • LL_DMA_MDATAALIGN_WORD
Return values
None

Definition at line 828 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetMode()

__STATIC_INLINE void LL_DMA_SetMode ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  Mode 
)

Set DMA mode normal, circular or peripheral flow control. @rmtoll CR CIRC LL_DMA_SetMode
CR PFCTRL LL_DMA_SetMode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
ModeThis parameter can be one of the following values:
  • LL_DMA_MODE_NORMAL
  • LL_DMA_MODE_CIRCULAR
  • LL_DMA_MODE_PFCTRL
Return values
None

Definition at line 643 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetPeriphAddress()

__STATIC_INLINE void LL_DMA_SetPeriphAddress ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  PeriphAddress 
)

Set the Peripheral address. @rmtoll PAR PA LL_DMA_SetPeriphAddress.

Note
Interface used for direction LL_DMA_DIRECTION_PERIPH_TO_MEMORY or LL_DMA_DIRECTION_MEMORY_TO_PERIPH only.
This API must not be called when the DMA channel is enabled.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
PeriphAddressBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 1459 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetPeriphBurstxfer()

__STATIC_INLINE void LL_DMA_SetPeriphBurstxfer ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  Pburst 
)

Set Peripheral burst transfer configuration. @rmtoll CR PBURST LL_DMA_SetPeriphBurstxfer.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
PburstThis parameter can be one of the following values:
  • LL_DMA_PBURST_SINGLE
  • LL_DMA_PBURST_INC4
  • LL_DMA_PBURST_INC8
  • LL_DMA_PBURST_INC16
Return values
None

Definition at line 1121 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetPeriphIncMode()

__STATIC_INLINE void LL_DMA_SetPeriphIncMode ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  IncrementMode 
)

Set Peripheral increment mode. @rmtoll CR PINC LL_DMA_SetPeriphIncMode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
IncrementModeThis parameter can be one of the following values:
  • LL_DMA_PERIPH_NOINCREMENT
  • LL_DMA_PERIPH_INCREMENT
Return values
None

Definition at line 690 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetPeriphSize()

__STATIC_INLINE void LL_DMA_SetPeriphSize ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  Size 
)

Set Peripheral size. @rmtoll CR PSIZE LL_DMA_SetPeriphSize.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
SizeThis parameter can be one of the following values:
  • LL_DMA_PDATAALIGN_BYTE
  • LL_DMA_PDATAALIGN_HALFWORD
  • LL_DMA_PDATAALIGN_WORD
Return values
None

Definition at line 781 of file stm32f4xx_ll_dma.h.

◆ LL_DMA_SetStreamPriorityLevel()

__STATIC_INLINE void LL_DMA_SetStreamPriorityLevel ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
uint32_t  Priority 
)

Set Stream priority level. @rmtoll CR PL LL_DMA_SetStreamPriorityLevel.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
  • LL_DMA_STREAM_0
  • LL_DMA_STREAM_1
  • LL_DMA_STREAM_2
  • LL_DMA_STREAM_3
  • LL_DMA_STREAM_4
  • LL_DMA_STREAM_5
  • LL_DMA_STREAM_6
  • LL_DMA_STREAM_7
PriorityThis parameter can be one of the following values:
  • LL_DMA_PRIORITY_LOW
  • LL_DMA_PRIORITY_MEDIUM
  • LL_DMA_PRIORITY_HIGH
  • LL_DMA_PRIORITY_VERYHIGH
Return values
None

Definition at line 921 of file stm32f4xx_ll_dma.h.