STM32F4xx_HAL_Driver  1.8.3
Initialization and de-initialization functions
+ Collaboration diagram for Initialization and de-initialization functions:

Functions

uint32_t LL_DMA_Init (DMA_TypeDef *DMAx, uint32_t Stream, LL_DMA_InitTypeDef *DMA_InitStruct)
 Initialize the DMA registers according to the specified parameters in DMA_InitStruct. More...
 
uint32_t LL_DMA_DeInit (DMA_TypeDef *DMAx, uint32_t Stream)
 De-initialize the DMA registers to their default reset values. More...
 
void LL_DMA_StructInit (LL_DMA_InitTypeDef *DMA_InitStruct)
 Set each LL_DMA_InitTypeDef field to default value. More...
 

Detailed Description

Function Documentation

◆ LL_DMA_DeInit()

uint32_t LL_DMA_DeInit ( DMA_TypeDef *  DMAx,
uint32_t  Stream 
)

De-initialize the DMA registers to their default reset values.

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
  • LL_DMA_STREAM_ALL
Return values
AnErrorStatus enumeration value:
  • SUCCESS: DMA registers are de-initialized
  • ERROR: DMA registers are not de-initialized

Definition at line 155 of file stm32f4xx_ll_dma.c.

◆ LL_DMA_Init()

uint32_t LL_DMA_Init ( DMA_TypeDef *  DMAx,
uint32_t  Stream,
LL_DMA_InitTypeDef DMA_InitStruct 
)

Initialize the DMA registers according to the specified parameters in DMA_InitStruct.

Note
To convert DMAx_Streamy Instance to DMAx Instance and Streamy, use helper macros :
  • __LL_DMA_GET_INSTANCE
  • __LL_DMA_GET_STREAM
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
DMA_InitStructpointer to a LL_DMA_InitTypeDef structure.
Return values
AnErrorStatus enumeration value:
  • SUCCESS: DMA registers are initialized
  • ERROR: Not applicable

Definition at line 284 of file stm32f4xx_ll_dma.c.

◆ LL_DMA_StructInit()

void LL_DMA_StructInit ( LL_DMA_InitTypeDef DMA_InitStruct)

Set each LL_DMA_InitTypeDef field to default value.

Parameters
DMA_InitStructPointer to a LL_DMA_InitTypeDef structure.
Return values
None

Definition at line 384 of file stm32f4xx_ll_dma.c.