cresample
Xilinx SDK Drivers API Documentation
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

◆ CRESAMPLE_DEVICE_ID

#define CRESAMPLE_DEVICE_ID   XPAR_CRESAMPLE_0_DEVICE_ID

CRESAMPLE Device ID.

Referenced by main().

Function Documentation

◆ main()

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().

◆ XCresampleSelfTestExample()

int XCresampleSelfTestExample ( u16  DeviceId)

This function does a minimal test on the XCRESAMPLE driver.

Parameters
DeviceIdis 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

◆ Cresample

XCresample Cresample

Instance of the CRESAMPLE Device.