dmaps
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Groups Pages
xdmaps_example_w_intr.c File Reference

Overview

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...
 

Function Documentation

void DmaDoneHandler ( unsigned int  Channel,
XDmaPs_Cmd DmaCmd,
void *  CallbackRef 
)

DmaDoneHandler.

Parameters
Channelis the Channel number.
DmaCmdis the Dma Command.
CallbackRefis the callback reference data.
Returns
None.
Note
None.

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.

Parameters
None.
Returns
XST_SUCCESS to indicate success, otherwise XST_FAILURE.
Note
None.

References XDmaPs_Example_W_Intr().

int XDmaPs_Example_W_Intr ( XDmaPs DmapsInstPtr,
UINTPTR  BaseAddress 
)