XilinxProcessorIPLib/drivers/rgb2ycrcb/src/xrgb2ycrcb_sinit.c
XRgb2YCrCb_Config *XRgb2YCrCb_LookupConfig(u16 DeviceId)
{
	u32 Index;
	XRgb2YCrCb_Config *CfgPtr = NULL;
	extern XRgb2YCrCb_Config
		XRgb2YCrCb_ConfigTable[XPAR_XRGB2YCRCB_NUM_INSTANCES];

	/* Get the reference pointer to XRgb2YCrCb_Config structure */
	for (Index = (u32)0x0; Index < (u32)(XPAR_XRGB2YCRCB_NUM_INSTANCES);
								Index++) {

		/* Compare device Id with configTable's device Id */
		if (XRgb2YCrCb_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XRgb2YCrCb_ConfigTable[Index];
			break;
		}
	}

	return (XRgb2YCrCb_Config *)CfgPtr;
}
/*****************************************************************************/
/**
*
* This function returns a reference to an XRgb2YCrCb_Config structure
* based on the unique core id, <i>DeviceId</i>. The return value will refer
* to an entry in the core configuration table defined in the xrgb2ycrcb_g.c
* file.
*
* @param	DeviceId is the unique core ID of the core for the lookup
*		operation.
*
* @return	XRgb2YCrCb_LookupConfig returns a reference to a config record
*		in the configuration table (in xrgb2ycrcb_g.c) corresponding to
*		<i>DeviceId</i>, or NULL if no match is found.
*
* @note		None.
*
******************************************************************************/
This function returns a reference to an XRgb2YCrCb_Config structure
based on the unique core id, DeviceId. The return value will refer
to an entry in the core configuration table defined in the xrgb2ycrcb_g.c
file.
This function returns a reference to an XRgb2YCrCb_Config structure based on the unique core id DeviceId . The return value will refer to an entry in the core configuration table defined in the xrgb2ycrcb_g . c file .
XRgb2YCrCb_Config *XRgb2YCrCb_LookupConfig(u16 DeviceId)
{
	u32 Index;
	XRgb2YCrCb_Config *CfgPtr = NULL;
	extern XRgb2YCrCb_Config
		XRgb2YCrCb_ConfigTable[XPAR_XRGB2YCRCB_NUM_INSTANCES];
	for (Index = (u32)0x0; Index < (u32)(XPAR_XRGB2YCRCB_NUM_INSTANCES);
								Index++) {
		if (XRgb2YCrCb_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XRgb2YCrCb_ConfigTable[Index];
			break;
		}
	}
	return (XRgb2YCrCb_Config *)CfgPtr;
}
XRgb2YCrCb_Config * XRgb2YCrCb_LookupConfig ( u16 DeviceId ) { u32 Index ; XRgb2YCrCb_Config * CfgPtr = NULL ; extern XRgb2YCrCb_Config XRgb2YCrCb_ConfigTable [ XPAR_XRGB2YCRCB_NUM_INSTANCES ] ; for ( Index = ( u32 ) 0x0 ; Index < ( u32 ) ( XPAR_XRGB2YCRCB_NUM_INSTANCES ) ; Index ++ ) { if ( XRgb2YCrCb_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XRgb2YCrCb_ConfigTable [ Index ] ; break ; } } return ( XRgb2YCrCb_Config * ) CfgPtr ; }
This function returns a reference to an XRgb2YCrCb_Config structure
based on the unique core id, <i>DeviceId</i>.
This function returns a reference to an XRgb2YCrCb_Config structure based on the unique core id <i > DeviceId< / i > .
/* Get the reference pointer to XRgb2YCrCb_Config structure */ /* Compare device Id with configTable's device Id */