XilinxProcessorIPLib/drivers/xadcps/src/xadcps_sinit.c
XAdcPs_Config *XAdcPs_LookupConfig(u16 DeviceId)
{
	XAdcPs_Config *CfgPtr = NULL;
	u32 Index;

	for (Index = 0U; Index < 1U; Index++) {
		if (XAdcPs_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XAdcPs_ConfigTable[Index];
			break;
		}
	}

	return CfgPtr;
}
/*****************************************************************************/
/**
*
* This function looks up the device configuration based on the unique device ID.
* The table XAdcPs_ConfigTable contains the configuration info for each device
* in the system.
*
* @param	DeviceId contains the ID of the device for which the
*		device configuration pointer is to be returned.
*
* @return
*		- A pointer to the configuration found.
*		- NULL if the specified device ID was not found.
*
* @note		None.
*
******************************************************************************/
This function looks up the device configuration based on the unique device ID.
The table XAdcPs_ConfigTable contains the configuration info for each device
in the system.
This function looks up the device configuration based on the unique device ID . The table XAdcPs_ConfigTable contains the configuration info for each device in the system .
XAdcPs_Config *XAdcPs_LookupConfig(u16 DeviceId)
{
	XAdcPs_Config *CfgPtr = NULL;
	u32 Index;
	for (Index = 0U; Index < 1U; Index++) {
		if (XAdcPs_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XAdcPs_ConfigTable[Index];
			break;
		}
	}
	return CfgPtr;
}
XAdcPs_Config * XAdcPs_LookupConfig ( u16 DeviceId ) { XAdcPs_Config * CfgPtr = NULL ; u32 Index ; for ( Index = 0U ; Index < 1U ; Index ++ ) { if ( XAdcPs_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XAdcPs_ConfigTable [ Index ] ; break ; } } return CfgPtr ; }
This function looks up the device configuration based on the unique device ID.
This function looks up the device configuration based on the unique device ID .