XilinxProcessorIPLib/drivers/deinterlacer/examples/deint_selftest_example.c
int XDeintSelfTestExample(u16 DeviceId)
{
	int Status;
	XDeint_Config *Config;


	/*
	 * Initialize the Deinterlacer driver so that it's ready to use
	 * Look up the configuration in the config table,
	 * then initialize it.
	 */
	Config = XDeint_LookupConfig(DeviceId);
	if (NULL == Config) {
		return XST_FAILURE;
	}

	Status = XDeint_ConfigInitialize(&Deint, Config, Config->BaseAddress);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	/*
	 * Perform a self-test to check hardware build.
	 */

	Status = XDeint_Selftest(&Deint);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function does a minimal test on the XDeint driver.
*
*
* @param	DeviceId is the XPAR_<DEINT_instance>_DEVICE_ID value from
*		xparameters.h.
*
* @return	XST_SUCCESS if successful, otherwise XST_FAILURE.
*
* @note		None.
*
****************************************************************************/
This function does a minimal test on the XDeint driver.
This function does a minimal test on the XDeint driver .
int XDeintSelfTestExample(u16 DeviceId)
{
	int Status;
	XDeint_Config *Config;
	Config = XDeint_LookupConfig(DeviceId);
	if (NULL == Config) {
		return XST_FAILURE;
	}
	Status = XDeint_ConfigInitialize(&Deint, Config, Config->BaseAddress);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	Status = XDeint_Selftest(&Deint);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
int XDeintSelfTestExample ( u16 DeviceId ) { int Status ; XDeint_Config * Config ; Config = XDeint_LookupConfig ( DeviceId ) ; if ( NULL == Config ) { return XST_FAILURE ; } Status = XDeint_ConfigInitialize ( & Deint , Config , Config -> BaseAddress ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } Status = XDeint_Selftest ( & Deint ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } return XST_SUCCESS ; }
This function does a minimal test on the XDeint driver.
This function does a minimal test on the XDeint driver .
/*
	 * Initialize the Deinterlacer driver so that it's ready to use
	 * Look up the configuration in the config table,
	 * then initialize it.
	 */ /*
	 * Perform a self-test to check hardware build.
	 */