enhance
Xilinx SDK Drivers API Documentation
enhance_selftest_example.c File Reference

Overview

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

MODIFICATION HISTORY:
Ver   Who    Date     Changes

1.00a drg/jz 01/13/10 First Release 1.03a sg 08/14/12 Updated the example for CR 666306. Modified the device ID to use the first Device Id Removed the printf at the start of the main 7.0 adk 02/19/14 Modified function names as per guidelines

Functions

u32 XEnhanceSelfTestExample (u16 DeviceId)
 This function does a minimal test on the XEnhance driver. More...
 
int main (void)
 Main function to call the example. More...
 

Variables

XEnhance InstancePtr
 Instance of the Enhance Device. More...
 

Function Documentation

◆ main()

int main ( void  )

Main function to call the example.

Returns
XST_SUCCESS if successful, otherwise XST_FAILURE.
Note
None.

References XEnhanceSelfTestExample().

◆ XEnhanceSelfTestExample()

u32 XEnhanceSelfTestExample ( u16  DeviceId)

This function does a minimal test on the XEnhance driver.

Parameters
DeviceIdis the XPAR_<ENHANCE_instance>_DEVICE_ID value from xparameters.h.
Returns
XST_SUCCESS if successful, otherwise XST_FAILURE.
Note
None.

References XEnhance_Config::BaseAddress, XEnhance_CfgInitialize(), XEnhance_LookupConfig(), and XEnhance_SelfTest().

Referenced by main().

Variable Documentation

◆ InstancePtr

XEnhance InstancePtr

Instance of the Enhance Device.

Referenced by XEnhance_CfgInitialize(), XEnhance_IntrHandler(), and XEnhance_Setup().