axidma
Xilinx SDK Drivers API Documentation
xaxidma_example_selftest.c File Reference

Overview

This file demonstrates the example to do selftest on the device.

MODIFICATION HISTORY:
Ver   Who  Date     Changes
----- ---- -------- -------------------------------------------------------
9.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.
      ms   04/05/17 Modified Comment lines in functions to
                    recognize it as documentation block for doxygen
                    generation of examples.

Functions

int AxiDMASelfTestExample (u16 DeviceId)
 This function performance a reset of the DMA device and checks the device is coming out of reset or not. More...
 
int main ()
 The entry point for this example. More...
 

Function Documentation

◆ AxiDMASelfTestExample()

int AxiDMASelfTestExample ( u16  DeviceId)

This function performance a reset of the DMA device and checks the device is coming out of reset or not.

Parameters
DeviceIdis the DMA device id.
Returns
  • XST_SUCCESS if channel reset is successful
  • XST_FAILURE if channel reset fails.
Note
None.

References XAxiDma_CfgInitialize(), XAxiDma_LookupConfig(), and XAxiDma_Selftest().

◆ main()

int main ( void  )

The entry point for this example.

It invokes the example function, and reports the execution status.

Parameters
None.
Returns
  • XST_SUCCESS if example finishes successfully
  • XST_FAILURE if example fails.
Note
None.