G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Convert DMAxStreamy

Macros

#define __DDL_DMA_GET_INSTANCE(__STREAM_INSTANCE__)
 Convert DMAx_Streamy into DMAx.
#define __DDL_DMA_GET_STREAM(__STREAM_INSTANCE__)
 Convert DMAx_Streamy into DDL_DMA_STREAM_y.
#define __DDL_DMA_GET_STREAM_INSTANCE(__DMA_INSTANCE__, __STREAM__)
 Convert DMA Instance DMAx and DDL_DMA_STREAM_y into DMAx_Streamy.

Detailed Description

Macro Definition Documentation

◆ __DDL_DMA_GET_INSTANCE

#define __DDL_DMA_GET_INSTANCE ( __STREAM_INSTANCE__)
Value:
(((uint32_t)(__STREAM_INSTANCE__) > ((uint32_t)DMA1_Stream7)) ? 0 : DMA1)

Convert DMAx_Streamy into DMAx.

Parameters
__STREAM_INSTANCE__DMAx_Streamy
Return values
DMAx

Definition at line 429 of file g32r4xx_ddl_dma.h.

◆ __DDL_DMA_GET_STREAM

#define __DDL_DMA_GET_STREAM ( __STREAM_INSTANCE__)
Value:
(((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream0)) ? DDL_DMA_STREAM_0 : \
((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream1)) ? DDL_DMA_STREAM_1 : \
((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream2)) ? DDL_DMA_STREAM_2 : \
((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream3)) ? DDL_DMA_STREAM_3 : \
((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream4)) ? DDL_DMA_STREAM_4 : \
((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream5)) ? DDL_DMA_STREAM_5 : \
((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream6)) ? DDL_DMA_STREAM_6 : \
((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream7)) ? DDL_DMA_STREAM_7 : \
#define DDL_DMA_STREAM_2
#define DDL_DMA_STREAM_0
#define DDL_DMA_STREAM_6
#define DDL_DMA_STREAM_7
#define DDL_DMA_STREAM_5
#define DDL_DMA_STREAM_4
#define DDL_DMA_STREAM_3
#define DDL_DMA_STREAM_1

Convert DMAx_Streamy into DDL_DMA_STREAM_y.

Parameters
__STREAM_INSTANCE__DMAx_Streamy
Return values
DDL_DMA_CHANNEL_y

Definition at line 437 of file g32r4xx_ddl_dma.h.

◆ __DDL_DMA_GET_STREAM_INSTANCE

#define __DDL_DMA_GET_STREAM_INSTANCE ( __DMA_INSTANCE__,
__STREAM__ )
Value:
((((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)DDL_DMA_STREAM_0))) ? DMA1_Stream0 : \
(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)DDL_DMA_STREAM_1))) ? DMA1_Stream1 : \
(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)DDL_DMA_STREAM_2))) ? DMA1_Stream2 : \
(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)DDL_DMA_STREAM_3))) ? DMA1_Stream3 : \
(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)DDL_DMA_STREAM_4))) ? DMA1_Stream4 : \
(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)DDL_DMA_STREAM_5))) ? DMA1_Stream5 : \
(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)DDL_DMA_STREAM_6))) ? DMA1_Stream6 : \
(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)DDL_DMA_STREAM_7))) ? DMA1_Stream7 : \
0)

Convert DMA Instance DMAx and DDL_DMA_STREAM_y into DMAx_Streamy.

Parameters
__DMA_INSTANCE__DMAx
__STREAM__DDL_DMA_STREAM_y
Return values
DMAx_Streamy

Definition at line 454 of file g32r4xx_ddl_dma.h.