XilinxProcessorIPLib/drivers/v_sdirx/examples/xv_sdirx_example_selftest.c
u32 XV_SdiRxSelfTestExample(u32 DeviceId)
{
	XV_SdiRx_Config *CfgPtr;
	u32 Status = XST_SUCCESS;

	CfgPtr = XV_SdiRx_LookupConfig(DeviceId);
	if (!CfgPtr) {
		return XST_FAILURE;
	}

	Status = XV_SdiRx_CfgInitialize(&Sdi, CfgPtr, CfgPtr->BaseAddr);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	Status = XV_SdiRx_SelfTest(&Sdi);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	return Status;
}
/*****************************************************************************/
/**
* This function checks if the Rx core initialization is successful and
* the default register values are matching
*
* @param	DeviceId is the XV_SdiRx Controller Device id.
*
* @return
*		- XST_SUCCESS if Rx initialixation and self test are successsful
*		- XST_FAILURE if either Rx initialixation and self test fails
*
* @note		None.
*
******************************************************************************/
This function checks if the Rx core initialization is successful and
the default register values are matching
This function checks if the Rx core initialization is successful and the default register values are matching
u32 XV_SdiRxSelfTestExample(u32 DeviceId)
{
	XV_SdiRx_Config *CfgPtr;
	u32 Status = XST_SUCCESS;
	CfgPtr = XV_SdiRx_LookupConfig(DeviceId);
	if (!CfgPtr) {
		return XST_FAILURE;
	}
	Status = XV_SdiRx_CfgInitialize(&Sdi, CfgPtr, CfgPtr->BaseAddr);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	Status = XV_SdiRx_SelfTest(&Sdi);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return Status;
}
u32 XV_SdiRxSelfTestExample ( u32 DeviceId ) { XV_SdiRx_Config * CfgPtr ; u32 Status = XST_SUCCESS ; CfgPtr = XV_SdiRx_LookupConfig ( DeviceId ) ; if ( ! CfgPtr ) { return XST_FAILURE ; } Status = XV_SdiRx_CfgInitialize ( & Sdi , CfgPtr , CfgPtr -> BaseAddr ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } Status = XV_SdiRx_SelfTest ( & Sdi ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } return Status ; }
This function checks if the Rx core initialization is successful and
the default register values are matching
This function checks if the Rx core initialization is successful and the default register values are matching