G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Initialization and de-initialization functions

Functions

uint32_t DDL_DMA_Init (DMA_TypeDef *DMAx, uint32_t Stream, DDL_DMA_InitTypeDef *DMA_InitStruct)
 Initialize the DMA registers according to the specified parameters in DMA_InitStruct.
uint32_t DDL_DMA_DeInit (DMA_TypeDef *DMAx, uint32_t Stream)
 De-initialize the DMA registers to their default reset values.
void DDL_DMA_StructInit (DDL_DMA_InitTypeDef *DMA_InitStruct)
 Set each DDL_DMA_InitTypeDef field to default value.

Detailed Description

Function Documentation

◆ DDL_DMA_DeInit()

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

Definition at line 170 of file g32r4xx_ddl_dma.c.

◆ DDL_DMA_Init()

uint32_t DDL_DMA_Init ( DMA_TypeDef * DMAx,
uint32_t Stream,
DDL_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 :
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
DMA_InitStructpointer to a DDL_DMA_InitTypeDef structure.
Return values
AnErrorStatus enumeration value:
  • SUCCESS: DMA registers are initialized
  • ERROR: Not applicable

Definition at line 283 of file g32r4xx_ddl_dma.c.

◆ DDL_DMA_StructInit()

void DDL_DMA_StructInit ( DDL_DMA_InitTypeDef * DMA_InitStruct)

Set each DDL_DMA_InitTypeDef field to default value.

Parameters
DMA_InitStructPointer to a DDL_DMA_InitTypeDef structure.
Return values
None

Definition at line 383 of file g32r4xx_ddl_dma.c.