csudma: xcsudma_selftest_example.c File Reference

| csudma Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions | Variables
xcsudma_selftest_example.c File Reference

## Overview

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

    MODIFICATION HISTORY:

    Ver   Who     Date     Changes

    1.0   vnsld  22/10/14 First release
          ms     04/10/17 Modified filename tag to include the file in doxygen
                          examples.
    1.2   adk    11/22/17 Added peripheral test app support.

## Functions
int | XCsuDma_SelfTestExample (u16 DeviceId)
| This function does a minimal test on the XCsudma driver. More...
int | main (void)
| Main function to call the example. More...

## Variables
XCsuDma | CsuDma
| Instance of the Csu_Dma 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 XCsuDma_SelfTestExample().

int XCsuDma_SelfTestExample | ( | u16 | DeviceId | ) |

This function does a minimal test on the XCsudma driver.

Parameters

  DeviceId | is the XPAR_<CSUDMA Instance>_DEVICE_ID value from xparameters.h.

Returns
  - XST_SUCCESS if successful.
  - XST_FAILURE if failed.

Note
  None.

References XCsuDma_Config::BaseAddress, XCsuDma_CfgInitialize(), XCsuDma_LookupConfig(), and XCsuDma_SelfTest().

Referenced by main().

## Variable Documentation

XCsuDma CsuDma

Instance of the Csu_Dma Device.