![]() |
API Reference
The NEORV32 RISC-V Processor
|
Direct Memory Access Controller (DMA) HW driver source file. More...
#include <neorv32.h>Functions | |
| int | neorv32_dma_available (void) |
| int | neorv32_dma_get_descriptor_fifo_depth (void) |
| int | neorv32_dma_descriptor_fifo_full (void) |
| int | neorv32_dma_descriptor_fifo_empty (void) |
| void | neorv32_dma_enable (void) |
| void | neorv32_dma_disable (void) |
| void | neorv32_dma_irq_ack (void) |
| int | neorv32_dma_program (uint32_t src_addr, uint32_t dst_addr, uint32_t config) |
| void | neorv32_dma_program_nocheck (uint32_t src_addr, uint32_t dst_addr, uint32_t config) |
| void | neorv32_dma_start (void) |
| int | neorv32_dma_status (void) |
Direct Memory Access Controller (DMA) HW driver source file.
| int neorv32_dma_available | ( | void | ) |
Check if DMA controller was synthesized.
| int neorv32_dma_descriptor_fifo_empty | ( | void | ) |
Check if descriptor FIFO is empty.
| int neorv32_dma_descriptor_fifo_full | ( | void | ) |
Check if descriptor FIFO is full.
| void neorv32_dma_disable | ( | void | ) |
Disable DMA. This will reset the DMA and will also terminate the current transfer.
| void neorv32_dma_enable | ( | void | ) |
Enable DMA.
| int neorv32_dma_get_descriptor_fifo_depth | ( | void | ) |
Get DMA descriptor FIFO depth.
| void neorv32_dma_irq_ack | ( | void | ) |
Manually clear pending DMA interrupt. This will also clear the transfer-error and transfer-done status flags.
| int neorv32_dma_program | ( | uint32_t | src_addr, |
| uint32_t | dst_addr, | ||
| uint32_t | config ) |
Program DMA descriptor.
| [in] | base_src | Source data base address. |
| [in] | base_dst | Destination data base address. |
| [in] | config | Transfer type configuration (NEORV32_DMA_CONF_enum). |
| void neorv32_dma_program_nocheck | ( | uint32_t | src_addr, |
| uint32_t | dst_addr, | ||
| uint32_t | config ) |
Program DMA descriptor (without checking FIFO level).
| [in] | base_src | Source data base address. |
| [in] | base_dst | Destination data base address. |
| [in] | config | Transfer type configuration (NEORV32_DMA_CONF_enum). |
| void neorv32_dma_start | ( | void | ) |
Trigger pre-programmed DMA transfer(s)
| int neorv32_dma_status | ( | void | ) |
Get DMA status.