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

Overview

This file contains an example using the XZDma driver to do self test on the device.

MODIFICATION HISTORY:
Ver   Who     Date     Changes


1.0 vns 2/27/15 First release 1.5 adk 11/22/17 Added peripheral test app support.

#include "xzdma.h"
#include "xparameters.h"

Functions

int XZDma_SelfTestExample (UINTPTR BaseAddress)
 This function does a minimal test on the ZDMA driver. More...
 
int main (void)
 Main function to call the example. More...
 

Variables

XZDma ZDma
 Instance of the ZDMA Device. More...
 

Function Documentation

int main ( void  )

Main function to call the example.

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

References XZDma_SelfTestExample().

int XZDma_SelfTestExample ( UINTPTR  BaseAddress)

This function does a minimal test on the ZDMA driver.

Parameters
BaseAddresscontains the base address of the ZDMA device
Returns
  • XST_SUCCESS if successful.
  • XST_FAILURE if failed.
Note
None.

References XZDma_Config::BaseAddress, XZDma_CfgInitialize(), XZDma_LookupConfig(), and XZDma_SelfTest().

Referenced by main().

Variable Documentation

XZDma ZDma

Instance of the ZDMA Device.