zdma
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
xzdma_readonlymode_example.c File Reference

Overview

This file contains the example using XZDma driver to do simple data read on ZDMA device.

MODIFICATION HISTORY:
Ver   Who     Date     Changes


1.0 vns 2/27/15 First release ms 04/05/17 Modified comment lines notation in functions to avoid unnecessary description to get displayed while generating doxygen and also changed filename tag to include the file in doxygen examples. 1.3 mus 08/14/17 Do not perform cache operations if CCI is enabled 1.4 adk 11/02/17 Updated example to fix compilation errors for IAR compiler. 1.13 sk 08/02/21 Make Done variable as volatile to fix failure at optimization level 2. 1.16 sa 09/29/22 Fix infinite loops in the example.

#include "xzdma.h"
#include "xparameters.h"
#include "xinterrupt_wrap.h"
#include "xil_util.h"
#include "xplatform_info.h"

Macros

#define SIZE   100
 Size of the data to be transferred. More...
 

Functions

int XZDma_SimpleReadOnlyExample (UINTPTR BaseAddress)
 This function does a test of the data transfer in simple mode of read only 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...
 
u32 SrcBuf [256]
 Source buffer. More...
 

Macro Definition Documentation

#define SIZE   100

Size of the data to be transferred.

Referenced by XZDma_SimpleReadOnlyExample(), and XZDma_WriteOnlyExample().

Function Documentation

int main ( void  )

Main function to call the example.

Returns
  • XST_SUCCESS if successful.
  • XST_FAILURE if failed.
Note
None.

References XZDma_SimpleReadOnlyExample().

Variable Documentation

u32 SrcBuf[256]

Source buffer.

XZDma ZDma

Instance of the ZDMA Device.