Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
infineon-xmc4xxx-dma.h File Reference

Go to the source code of this file.

Macros

#define XMC4XXX_DMA_REQUEST_SOURCE_POS   0
 
#define XMC4XXX_DMA_REQUEST_SOURCE_MASK   0xf
 
#define XMC4XXX_DMA_LINE_POS   4
 
#define XMC4XXX_DMA_LINE_MASK   0xf
 
#define XMC4XXX_DMA_GET_REQUEST_SOURCE(mx)    ((mx >> XMC4XXX_DMA_REQUEST_SOURCE_POS) & XMC4XXX_DMA_REQUEST_SOURCE_MASK)
 
#define XMC4XXX_DMA_GET_LINE(mx)   ((mx >> XMC4XXX_DMA_LINE_POS) & XMC4XXX_DMA_LINE_MASK)
 
#define XMC4XXX_SET_CONFIG(line, rs)    ((line) << XMC4XXX_DMA_LINE_POS | (rs) << XMC4XXX_DMA_REQUEST_SOURCE_POS)
 

Macro Definition Documentation

◆ XMC4XXX_DMA_GET_LINE

#define XMC4XXX_DMA_GET_LINE (   mx)    ((mx >> XMC4XXX_DMA_LINE_POS) & XMC4XXX_DMA_LINE_MASK)

◆ XMC4XXX_DMA_GET_REQUEST_SOURCE

#define XMC4XXX_DMA_GET_REQUEST_SOURCE (   mx)     ((mx >> XMC4XXX_DMA_REQUEST_SOURCE_POS) & XMC4XXX_DMA_REQUEST_SOURCE_MASK)

◆ XMC4XXX_DMA_LINE_MASK

#define XMC4XXX_DMA_LINE_MASK   0xf

◆ XMC4XXX_DMA_LINE_POS

#define XMC4XXX_DMA_LINE_POS   4

◆ XMC4XXX_DMA_REQUEST_SOURCE_MASK

#define XMC4XXX_DMA_REQUEST_SOURCE_MASK   0xf

◆ XMC4XXX_DMA_REQUEST_SOURCE_POS

#define XMC4XXX_DMA_REQUEST_SOURCE_POS   0

◆ XMC4XXX_SET_CONFIG

#define XMC4XXX_SET_CONFIG (   line,
  rs 
)     ((line) << XMC4XXX_DMA_LINE_POS | (rs) << XMC4XXX_DMA_REQUEST_SOURCE_POS)