cresample: cresample_selftest_example.c File Reference

| cresample Xilinx SDK Drivers API Documentation

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

Macros | Functions | Variables
cresample_selftest_example.c File Reference

## Overview

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

Note

None

MODIFICATION HISTORY:

    Ver   Who    Date     Changes

    4.0   adk    03/12/14 First release.

## Macros
#define | CRESAMPLE_DEVICE_ID XPAR_CRESAMPLE_0_DEVICE_ID
| CRESAMPLE Device ID. More...

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

## Variables
XCresample | Cresample
| Instance of the CRESAMPLE Device. More...

## Macro Definition Documentation

#define CRESAMPLE_DEVICE_ID XPAR_CRESAMPLE_0_DEVICE_ID

CRESAMPLE Device ID.

Referenced by main().

## Function Documentation

int main | ( | void |  | ) |

Main function to call the example.

Returns
  - XST_SUCCESS if successful.
  - XST_FAILURE if failed.

Note
  None.

References CRESAMPLE_DEVICE_ID, and XCresampleSelfTestExample().

int XCresampleSelfTestExample | ( | u16 | DeviceId | ) |

This function does a minimal test on the XCRESAMPLE driver.

Parameters

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

Returns
  - XST_SUCCESS if successful.
  - XST_FAILURE if failed.

Note
  None.

References XCresample_Config::BaseAddress, XCresample_CfgInitialize(), XCresample_LookupConfig(), and XCresample_SelfTest().

Referenced by main().

## Variable Documentation

XCresample Cresample

Instance of the CRESAMPLE Device.