XilinxProcessorIPLib/drivers/can/src/xcan.c
XCan_Config *XCan_GetConfig(unsigned int InstanceIndex)
{
	XCan_Config *CfgPtr;

	/* Check parameter */
	if (InstanceIndex >= XPAR_XCAN_NUM_INSTANCES)
		return NULL;

	CfgPtr = &XCan_ConfigTable[InstanceIndex];

	return CfgPtr;
}
/*****************************************************************************/
/**
*
* This function looks for the device configuration based on the device index.
* The table XCan_ConfigTable[] contains the configuration information for each
* device in the system.
*
* @param	InstanceIndex is a 0-based integer indexing all CAN devices in
*		the system.
*
* @return	A pointer to the configuration table entry corresponding to the
*		given device ID, or NULL if no match is found.
*
* @note		None.
*
******************************************************************************/
This function looks for the device configuration based on the device index.
The table XCan_ConfigTable[] contains the configuration information for each
device in the system.
This function looks for the device configuration based on the device index . The table XCan_ConfigTable [] contains the configuration information for each device in the system .
XCan_Config *XCan_GetConfig(unsigned int InstanceIndex)
{
	XCan_Config *CfgPtr;
	if (InstanceIndex >= XPAR_XCAN_NUM_INSTANCES)
		return NULL;
	CfgPtr = &XCan_ConfigTable[InstanceIndex];
	return CfgPtr;
}
XCan_Config * XCan_GetConfig ( unsigned int InstanceIndex ) { XCan_Config * CfgPtr ; if ( InstanceIndex >= XPAR_XCAN_NUM_INSTANCES ) return NULL ; CfgPtr = & XCan_ConfigTable [ InstanceIndex ] ; return CfgPtr ; }
This function looks for the device configuration based on the device index.
This function looks for the device configuration based on the device index .
/* Check parameter */