zdma
Vitis Drivers API Documentation
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.

Functions

int XZDma_SelfTestExample (u16 DeviceId)
 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 ( u16  DeviceId)

This function does a minimal test on the ZDMA driver.

Parameters
DeviceIdis the XPAR_<ZDMA Instance>_DEVICE_ID value from xparameters.h.
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.