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

Go to the source code of this file.

Macros

#define DMA_SMARTDMA_MIPI_RGB565_DMA   0
 
#define DMA_SMARTDMA_MIPI_RGB888_DMA   1
 
#define DMA_SMARTDMA_MIPI_RGB565_180   2
 
#define DMA_SMARTDMA_MIPI_RGB888_180   3
 
#define DMA_SMARTDMA_MIPI_RGB565_DMA_SWAP   4
 
#define DMA_SMARTDMA_MIPI_RGB888_DMA_SWAP   5
 
#define DMA_SMARTDMA_MIPI_RGB565_180_SWAP   6
 
#define DMA_SMARTDMA_MIPI_RGB888_180_SWAP   7
 
#define GD32_DMA_FEATURES_FIFO_THRESHOLD(threshold)   (threshold & 0x3)
 

Functions

void dma_smartdma_install_fw (const struct device *dev, uint8_t *firmware, uint32_t len)
 install SMARTDMA firmware
 

Macro Definition Documentation

◆ DMA_SMARTDMA_MIPI_RGB565_180

#define DMA_SMARTDMA_MIPI_RGB565_180   2

◆ DMA_SMARTDMA_MIPI_RGB565_180_SWAP

#define DMA_SMARTDMA_MIPI_RGB565_180_SWAP   6

◆ DMA_SMARTDMA_MIPI_RGB565_DMA

#define DMA_SMARTDMA_MIPI_RGB565_DMA   0

◆ DMA_SMARTDMA_MIPI_RGB565_DMA_SWAP

#define DMA_SMARTDMA_MIPI_RGB565_DMA_SWAP   4

◆ DMA_SMARTDMA_MIPI_RGB888_180

#define DMA_SMARTDMA_MIPI_RGB888_180   3

◆ DMA_SMARTDMA_MIPI_RGB888_180_SWAP

#define DMA_SMARTDMA_MIPI_RGB888_180_SWAP   7

◆ DMA_SMARTDMA_MIPI_RGB888_DMA

#define DMA_SMARTDMA_MIPI_RGB888_DMA   1

◆ DMA_SMARTDMA_MIPI_RGB888_DMA_SWAP

#define DMA_SMARTDMA_MIPI_RGB888_DMA_SWAP   5

◆ GD32_DMA_FEATURES_FIFO_THRESHOLD

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

Function Documentation

◆ dma_smartdma_install_fw()

void dma_smartdma_install_fw ( const struct device dev,
uint8_t firmware,
uint32_t  len 
)

install SMARTDMA firmware

Install a custom firmware for the smartDMA. This function allows the user to install a custom firmware into the smartDMA, which implements different API functions than the standard MCUX SDK firmware.

Parameters
devsmartDMA device
firmwareaddress of buffer containing smartDMA firmware
lenlength of firmware buffer