XilinxProcessorIPLib/drivers/dppsu/examples/xdppsu_selftest_example.c
u32 DpPsu_SelfTestExample(XDpPsu *InstancePtr, u16 DeviceId)
{
	u32 Status;
	XDpPsu_Config *ConfigPtr;

	/* Obtain the device configuration for the DisplayPort TX core. */
	ConfigPtr = XDpPsu_LookupConfig(DeviceId);
	if (!ConfigPtr) {
		return XST_FAILURE;
	}
	/* Copy the device configuration into the InstancePtr's Config
	 * structure. */
	XDpPsu_CfgInitialize(InstancePtr, ConfigPtr, ConfigPtr->BaseAddr);

	/* Run the self test. */
	Status = XDpPsu_SelfTest(InstancePtr);
	return Status;
}
/******************************************************************************/
/**
 * The main entry point for the selftest example using the XDpPsu driver. This
 * function will check whether or not the DisplayPort TX's registers are at
 * their default reset values to ensure that the core is in a known and working
 * state.
 *
 * @param	InstancePtr is a pointer to the XDpPsu instance.
 * @param	DeviceId is the unique device ID of the DisplayPort TX core
 *		instance.
 *
 * @return
 *		- XST_SUCCESS if the DisplayPort TX's registers are at their
 *		  default reset values.
 *		- XST_FAILURE if the DisplayPort TX's registers do not match
 *		  their default values or no DisplayPort TX instance was found.
 *
 * @note	None.
 *
*******************************************************************************/
The main entry point for the selftest example using the XDpPsu driver. This
function will check whether or not the DisplayPort TX's registers are at
their default reset values to ensure that the core is in a known and working
state.

@param       InstancePtr is a pointer to the XDpPsu instance.
@param       DeviceId is the unique device ID of the DisplayPort TX core
instance.

@return
- XST_SUCCESS if the DisplayPort TX's registers are at their
default reset values.
- XST_FAILURE if the DisplayPort TX's registers do not match
their default values or no DisplayPort TX instance was found.

@note        None.
The main entry point for the selftest example using the XDpPsu driver . This function will check whether or not the DisplayPort TX ' s registers are at their default reset values to ensure that the core is in a known and working state . @param InstancePtr is a pointer to the XDpPsu instance . @param DeviceId is the unique device ID of the DisplayPort TX core instance . @return - XST_SUCCESS if the DisplayPort TX ' s registers are at their default reset values . - XST_FAILURE if the DisplayPort TX ' s registers do not match their default values or no DisplayPort TX instance was found . @note None .
u32 DpPsu_SelfTestExample(XDpPsu *InstancePtr, u16 DeviceId)
{
	u32 Status;
	XDpPsu_Config *ConfigPtr;
	ConfigPtr = XDpPsu_LookupConfig(DeviceId);
	if (!ConfigPtr) {
		return XST_FAILURE;
	}
	XDpPsu_CfgInitialize(InstancePtr, ConfigPtr, ConfigPtr->BaseAddr);
	Status = XDpPsu_SelfTest(InstancePtr);
	return Status;
}
u32 DpPsu_SelfTestExample ( XDpPsu * InstancePtr , u16 DeviceId ) { u32 Status ; XDpPsu_Config * ConfigPtr ; ConfigPtr = XDpPsu_LookupConfig ( DeviceId ) ; if ( ! ConfigPtr ) { return XST_FAILURE ; } XDpPsu_CfgInitialize ( InstancePtr , ConfigPtr , ConfigPtr -> BaseAddr ) ; Status = XDpPsu_SelfTest ( InstancePtr ) ; return Status ; }
The main entry point for the selftest example using the XDpPsu driver.
The main entry point for the selftest example using the XDpPsu driver .
/* Obtain the device configuration for the DisplayPort TX core. */ /* Copy the device configuration into the InstancePtr's Config
	 * structure. */ /* Run the self test. */