![]() |
dmaps
Vitis Drivers API Documentation
|
MODIFICATION HISTORY:
Ver Who Date Changes
1.00 hbm 08/19/2010 First Release 1.01a nm 03/05/2012 Initializing DmaCmd structure compatible to armcc. Modified base address to secure register base address. 1.02a sg 05/16/2012 Some code cleanup and reorganisation of the functions within the example. 1.06a kpc 04/24/2012 Modified the APIs to make this file compatible with peripheral test suite. 2.1 kpc 08/23/2014 Fixed IAR compiler reported error. 2.3 ms 01/23/17 Modified xil_printf statement in main function to ensure that "Successfully ran" and "Failed" strings are available in all examples. This is a fix for CR-965028. 2.4 aj 11/07/2023 Add support for system system device tree flow
#include <stdio.h>#include <stdlib.h>#include "sleep.h"#include "xil_types.h"#include "xil_assert.h"#include "xil_io.h"#include "xil_exception.h"#include "xil_cache.h"#include "xil_printf.h"#include "xinterrupt_wrap.h"#include "xdmaps.h"Functions | |
| int | XDmaPs_Example_W_Intr (XDmaPs *DmapsInstPtr, UINTPTR BaseAddress) |
| Interrupt Example to test the DMA. More... | |
| void | DmaDoneHandler (unsigned int Channel, XDmaPs_Cmd *DmaCmd, void *CallbackRef) |
| DmaDoneHandler. More... | |
| int | main (void) |
| This is the main function for the DmaPs interrupt example. More... | |
| void DmaDoneHandler | ( | unsigned int | Channel, |
| XDmaPs_Cmd * | DmaCmd, | ||
| void * | CallbackRef | ||
| ) |
DmaDoneHandler.
| Channel | is the Channel number. |
| DmaCmd | is the Dma Command. |
| CallbackRef | is the callback reference data. |
References XDmaPs_Cmd::BD, XDmaPs_BD::DstAddr, and XDmaPs_BD::SrcAddr.
Referenced by XDmaPs_Example_W_Intr().
| int main | ( | void | ) |
This is the main function for the DmaPs interrupt example.
| None. |
References XDmaPs_Example_W_Intr().
| int XDmaPs_Example_W_Intr | ( | XDmaPs * | DmapsInstPtr, |
| UINTPTR | BaseAddress | ||
| ) |
Interrupt Example to test the DMA.
| DmapsInstPtr | is a pointer to the DMA PS instance. |
| BaseAddress | contains the base address of the DmaPs device |
References XDmaPs_Cmd::BD, XDmaPs_Cmd::ChanCtrl, XDmaPs::Config, DmaDoneHandler(), XDmaPs_BD::DstAddr, XDmaPs_ChanCtrl::DstBurstLen, XDmaPs_ChanCtrl::DstBurstSize, XDmaPs_ChanCtrl::DstInc, XDmaPs_Config::IntrId, XDmaPs_Config::IntrParent, XDmaPs_BD::Length, XDmaPs_BD::SrcAddr, XDmaPs_ChanCtrl::SrcBurstLen, XDmaPs_ChanCtrl::SrcBurstSize, XDmaPs_ChanCtrl::SrcInc, XDmaPs_CfgInitialize(), XDmaPs_DoneISR_0(), XDmaPs_DoneISR_1(), XDmaPs_DoneISR_2(), XDmaPs_DoneISR_3(), XDmaPs_DoneISR_4(), XDmaPs_DoneISR_5(), XDmaPs_DoneISR_6(), XDmaPs_DoneISR_7(), XDmaPs_FaultISR(), XDmaPs_LookupConfig(), XDmaPs_SetDoneHandler(), and XDmaPs_Start().
Referenced by main().