Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dma_gd32.h File Reference

Go to the source code of this file.

Macros

#define GD32_DMA_CONFIG_DIRECTION(config)
 
#define GD32_DMA_CONFIG_PERIPH_ADDR_INC(config)
 
#define GD32_DMA_CONFIG_MEMORY_ADDR_INC(config)
 
#define GD32_DMA_CONFIG_PERIPH_WIDTH(config)
 
#define GD32_DMA_CONFIG_MEMORY_WIDTH(config)
 
#define GD32_DMA_CONFIG_PERIPHERAL_INC_FIXED(config)
 
#define GD32_DMA_CONFIG_PRIORITY(config)
 
#define GD32_DMA_FEATURES_FIFO_THRESHOLD(threshold)
 

Macro Definition Documentation

◆ GD32_DMA_CONFIG_DIRECTION

#define GD32_DMA_CONFIG_DIRECTION ( config)
Value:
((config >> 6) & 0x3)

◆ GD32_DMA_CONFIG_MEMORY_ADDR_INC

#define GD32_DMA_CONFIG_MEMORY_ADDR_INC ( config)
Value:
((config >> 10) & 0x1)

◆ GD32_DMA_CONFIG_MEMORY_WIDTH

#define GD32_DMA_CONFIG_MEMORY_WIDTH ( config)
Value:
((config >> 13) & 0x3)

◆ GD32_DMA_CONFIG_PERIPH_ADDR_INC

#define GD32_DMA_CONFIG_PERIPH_ADDR_INC ( config)
Value:
((config >> 9) & 0x1)

◆ GD32_DMA_CONFIG_PERIPH_WIDTH

#define GD32_DMA_CONFIG_PERIPH_WIDTH ( config)
Value:
((config >> 11) & 0x3)

◆ GD32_DMA_CONFIG_PERIPHERAL_INC_FIXED

#define GD32_DMA_CONFIG_PERIPHERAL_INC_FIXED ( config)
Value:
((config >> 15) & 0x1)

◆ GD32_DMA_CONFIG_PRIORITY

#define GD32_DMA_CONFIG_PRIORITY ( config)
Value:
((config >> 16) & 0x3)

◆ GD32_DMA_FEATURES_FIFO_THRESHOLD

#define GD32_DMA_FEATURES_FIFO_THRESHOLD ( threshold)
Value:
(threshold & 0x3)