zdma
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
xzdma_simple_example.c File Reference
#include "xzdma.h"
#include "xparameters.h"
#include "xinterrupt_wrap.h"
#include "xil_cache.h"
#include "xil_util.h"
#include "xplatform_info.h"

Macros

#define SIZE   1000000
 Size of the data to be transferred. More...
 
#define TESTVALUE   0x1230
 For writing into source buffer. More...
 
#define POLL_TIMEOUT_COUNTER   1000000U
 Maximum poll iterations while waiting for a DMA event. More...
 
#define NUM_OF_EVENTS   1
 Number of events to wait for in Xil_WaitForEventSet. More...
 

Functions

int XZDma_SimpleExample (XZDma *ZdmaInstPtr, UINTPTR BaseAddress)
 This function does a test of the data transfer in simple mode of normal mode on the ZDMA driver. More...
 
int main (void)
 Main function to call the example. More...
 

Variables

XZDma ZDma
 Instance of the ZDMA Device. More...
 
u8 ZDmaDstBuf [SIZE]
 Destination buffer. More...
 
u8 ZDmaSrcBuf [SIZE]
 Source buffer. More...