devcfg
Xilinx SDK Drivers API Documentation
xdevcfg_selftest_example.c File Reference

Overview

This file contains an self test example showing the usage of the Device Configuration Interface Hardware and driver (XDevCfg).

Note

None

MODIFICATION HISTORY:
Ver   Who    Date     Changes

1.00 sdm 05/25/11 First release.

Functions

int DcfgSelfTestExample (u16 DeviceId)
 This function does a selftest on the Device Configuration device and XDevCfg driver as an example. More...
 
int main (void)
 Main function to call the Device Configuration Interface Selftest example. More...
 

Function Documentation

◆ DcfgSelfTestExample()

int DcfgSelfTestExample ( u16  DeviceId)

This function does a selftest on the Device Configuration device and XDevCfg driver as an example.

The purpose of this function is to illustrate the usage of the XDevCfg driver.

Parameters
DeviceIdis the XPAR_<XDCFG_instance>_DEVICE_ID value from xparameters.h
Returns
  • XST_SUCCESS if successful
  • XST_FAILURE if unsuccessful
Note
None

References XDcfg_Config::BaseAddr, XDcfg_CfgInitialize(), XDcfg_LookupConfig(), and XDcfg_SelfTest().

Referenced by main().

◆ main()

int main ( void  )

Main function to call the Device Configuration Interface Selftest example.

Parameters
None
Returns
  • XST_SUCCESS if successful
  • XST_FAILURE if unsuccessful
Note
None

References DcfgSelfTestExample().