TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

Initialization and de-initialization functions

Initialization and de-initialization functions
[DMA Exported Functions]

Functions

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

Function Documentation

uint32_t LL_DMA_DeInit ( DMA_TypeDef *  DMAx,
uint32_t  Channel 
)

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

Parameters:
DMAxDMAx Instance
ChannelThis parameter can be one of the following values:

  • 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
  • LL_DMA_CHANNEL_ALL
Return values:
AnErrorStatus enumeration value:

  • SUCCESS: DMA registers are de-initialized
  • ERROR: DMA registers are not de-initialized

Definition at line 177 of file stm32l4xx_ll_dma.c.

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

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

Note:
To convert DMAx_Channely Instance to DMAx Instance and Channely, use helper macros :
  • __LL_DMA_GET_INSTANCE
  • __LL_DMA_GET_CHANNEL
Parameters:
DMAxDMAx Instance
ChannelThis parameter can be one of the following values:

  • 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
DMA_InitStructpointer to a LL_DMA_InitTypeDef structure.
Return values:
AnErrorStatus enumeration value:

  • SUCCESS: DMA registers are initialized
  • ERROR: Not applicable

Definition at line 296 of file stm32l4xx_ll_dma.c.

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 364 of file stm32l4xx_ll_dma.c.