XilinxProcessorIPLib/drivers/csi2txss/src/xcsi2txss_selftest.c
u32 XCsi2TxSs_SelfTest(XCsi2TxSs *InstancePtr)
{
	u32 Status;

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

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