XilinxProcessorIPLib/drivers/v_sdirxss/examples/xv_sdirxss_selftest_example.c
u32 SdiRxSs_SelfTestExample(u32 DeviceId)
{
	u32 Status;
	XV_SdiRxSs_Config *ConfigPtr;

	/* Obtain the device configuration for the SDI RX Subsystem */
	ConfigPtr = XV_SdiRxSs_LookupConfig(DeviceId);
	if (!ConfigPtr) {
		return XST_FAILURE;
	}
	/* Copy the device configuration into the SdiRxSsInst's Config
	 * structure. */
	Status = XV_SdiRxSs_CfgInitialize(&SdiRxSsInst, ConfigPtr,
					ConfigPtr->BaseAddress);
	if (Status != XST_SUCCESS) {
		xil_printf("SDI RX SS config initialization failed.\n\r");
		return XST_FAILURE;
	}

	/* Run the self test. */
	Status = XV_SdiRxSs_SelfTest(&SdiRxSsInst);

	return Status;
}
/*****************************************************************************/
/**
* This function is the main entry point for the self test example using the
* XV_SdiRxSs driver. This function check whether or not its sub-core drivers
* self test functions are in working state.
*
* @param         DeviceId is the unique device ID of the SDI RX Subsystem core.
*
* @return
*		- XST_FAILURE if any of SDI RX Subsystem sub-core self
*		test failed.
*		- XST_SUCCESS, if all of SDI RX Subsystem sub-core self
*		test passed.
*
* @note		None.
*
******************************************************************************/
This function is the main entry point for the self test example using the
XV_SdiRxSs driver. This function check whether or not its sub-core drivers
self test functions are in working state.
This function is the main entry point for the self test example using the XV_SdiRxSs driver . This function check whether or not its sub - core drivers self test functions are in working state .
u32 SdiRxSs_SelfTestExample(u32 DeviceId)
{
	u32 Status;
	XV_SdiRxSs_Config *ConfigPtr;
	ConfigPtr = XV_SdiRxSs_LookupConfig(DeviceId);
	if (!ConfigPtr) {
		return XST_FAILURE;
	}
	Status = XV_SdiRxSs_CfgInitialize(&SdiRxSsInst, ConfigPtr,
					ConfigPtr->BaseAddress);
	if (Status != XST_SUCCESS) {
		xil_printf("SDI RX SS config initialization failed.\n\r");
		return XST_FAILURE;
	}
	Status = XV_SdiRxSs_SelfTest(&SdiRxSsInst);
	return Status;
}
u32 SdiRxSs_SelfTestExample ( u32 DeviceId ) { u32 Status ; XV_SdiRxSs_Config * ConfigPtr ; ConfigPtr = XV_SdiRxSs_LookupConfig ( DeviceId ) ; if ( ! ConfigPtr ) { return XST_FAILURE ; } Status = XV_SdiRxSs_CfgInitialize ( & SdiRxSsInst , ConfigPtr , ConfigPtr -> BaseAddress ) ; if ( Status != XST_SUCCESS ) { xil_printf ( " \n \r " ) ; return XST_FAILURE ; } Status = XV_SdiRxSs_SelfTest ( & SdiRxSsInst ) ; return Status ; }
This function is the main entry point for the self test example using the
XV_SdiRxSs driver.
This function is the main entry point for the self test example using the XV_SdiRxSs driver .
/* Obtain the device configuration for the SDI RX Subsystem */ /* Copy the device configuration into the SdiRxSsInst's Config
	 * structure. */ /* Run the self test. */