| csudma Vitis 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.
    1.14  adk    05/04/23 Added support for system device-tree flow.

## 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.