XilinxProcessorIPLib/drivers/dsitxss/src/xdsitxss_selftest.c
u32 XDsiTxSs_SelfTest(XDsiTxSs *InstancePtr)
{
	u32 Status;

	/* Verify argument */
	Xil_AssertNonvoid(InstancePtr != NULL);

	if (InstancePtr->DsiPtr) {
		Status = XDsi_SelfTest(InstancePtr->DsiPtr);
		if (Status != XST_SUCCESS) {
			xdbg_printf(XDBG_DEBUG_ERROR,
				"ERR::DSI Self test failed\n\r");
		}
	}
#if (XPAR_XDPHY_NUM_INSTANCES > 0)
	if (InstancePtr->Config.DphyInfo.IsPresent && InstancePtr->DphyPtr) {
		Status = XDphy_SelfTest(InstancePtr->DphyPtr);
		if (Status != XST_SUCCESS) {
			xdbg_printf(XDBG_DEBUG_ERROR,
				"ERR::Dphy Self test failed\n\r");
		}
	}
#endif

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function performs self test on MIPI DSI Tx Subsystem sub-cores.
*
* @param	InstancePtr is a pointer to the XDsiTxSs core instance.
*
* @return
*		- XST_SUCCESS if self test passed.
*		- XST_FAILURE if self test failed.
*
* @note		None.
*
******************************************************************************/
This function performs self test on MIPI DSI Tx Subsystem sub-cores.
This function performs self test on MIPI DSI Tx Subsystem sub - cores .
u32 XDsiTxSs_SelfTest(XDsiTxSs *InstancePtr)
{
	u32 Status;
	Xil_AssertNonvoid(InstancePtr != NULL);
	if (InstancePtr->DsiPtr) {
		Status = XDsi_SelfTest(InstancePtr->DsiPtr);
		if (Status != XST_SUCCESS) {
			xdbg_printf(XDBG_DEBUG_ERROR,
				"ERR::DSI Self test failed\n\r");
		}
	}
#if (XPAR_XDPHY_NUM_INSTANCES > 0)
	if (InstancePtr->Config.DphyInfo.IsPresent && InstancePtr->DphyPtr) {
		Status = XDphy_SelfTest(InstancePtr->DphyPtr);
		if (Status != XST_SUCCESS) {
			xdbg_printf(XDBG_DEBUG_ERROR,
				"ERR::Dphy Self test failed\n\r");
		}
	}
#endif
	return XST_SUCCESS;
}
u32 XDsiTxSs_SelfTest ( XDsiTxSs * InstancePtr ) { u32 Status ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; if ( InstancePtr -> DsiPtr ) { Status = XDsi_SelfTest ( InstancePtr -> DsiPtr ) ; if ( Status != XST_SUCCESS ) { xdbg_printf ( XDBG_DEBUG_ERROR , " \n \r " ) ; } } #if ( XPAR_XDPHY_NUM_INSTANCES > 0 ) if ( InstancePtr -> Config . DphyInfo . IsPresent && InstancePtr -> DphyPtr ) { Status = XDphy_SelfTest ( InstancePtr -> DphyPtr ) ; if ( Status != XST_SUCCESS ) { xdbg_printf ( XDBG_DEBUG_ERROR , " \n \r " ) ; } } #endif return XST_SUCCESS ; }
This function performs self test on MIPI DSI Tx Subsystem sub-cores.
This function performs self test on MIPI DSI Tx Subsystem sub - cores .
/* Verify argument */