rgb2ycrcb
Xilinx SDK Drivers API Documentation
rgb2ycrcb_selftest_example.c File Reference

Overview

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

Note
None.
MODIFICATION HISTORY:
Ver   Who    Date     Changes

7.0 adk 01/20/14 First Release.

Functions

int XRgb2YCrCbSelfTestExample (u16 DeviceId)
 This function does a minimal test on the RGB driver. More...
 
int main (void)
 Main/Entry function for self test example. More...
 

Variables

XRgb2YCrCb Rgb2YCrCbInst
 Instance of the RGB2YCRCB core. More...
 

Function Documentation

◆ main()

int main ( void  )

Main/Entry function for self test example.

Returns
  • XST_SUCCESS if successful.
  • XST_FAILURE if it is unsuccessful.
Note
None.

References XRgb2YCrCbSelfTestExample(), and XRGB_DEVICE_ID.

◆ XRgb2YCrCbSelfTestExample()

int XRgb2YCrCbSelfTestExample ( u16  DeviceId)

This function does a minimal test on the RGB driver.

Parameters
DeviceIdis an ID of RGB core or device.
Returns
  • XST_SUCCESS if successful.
  • XST_FAILURE if it is unsuccessful.
Note
None.

References XRgb2YCrCb_Config::BaseAddress, XRgb2YCrCb_CfgInitialize(), XRgb2YCrCb_LookupConfig(), and XRgb2YCrCb_SelfTest().

Referenced by main().

Variable Documentation

◆ Rgb2YCrCbInst

XRgb2YCrCb Rgb2YCrCbInst

Instance of the RGB2YCRCB core.