XilinxProcessorIPLib/drivers/dsitxss/examples/xdsitxss_selftest_example.c
u32 DsiTxSs_SelfTestExample(u32 DeviceId)
{
	u32 Status;
	XDsiTxSs_Config *ConfigPtr;

	/* Obtain the device configuration for the MIPI DSI TX Subsystem */
	ConfigPtr = XDsiTxSs_LookupConfig(DeviceId);
	if (!ConfigPtr) {
		return XST_FAILURE;
	}

	/* Copy the device configuration into the DsiTxSsInst's Config
	 * structure.
	 */
	Status = XDsiTxSs_CfgInitialize(&DsiTxSsInst, ConfigPtr,
					ConfigPtr->BaseAddr);
	if (Status != XST_SUCCESS) {
		xil_printf("MIPI DSI TX SS config initialization failed.\n\r");
		return XST_FAILURE;
	}

	/* Run the self test. */
	Status = XDsiTxSs_SelfTest(&DsiTxSsInst);

	return Status;
}
/*****************************************************************************/
/**
*
* This function is the main entry point for the self test example using the
* XDsiTxSs 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 MIPI DSI TX
*.		Subsystem core.
*
* @return
*		- XST_FAILURE if any of MIPI DSI RX Subsystem sub-core self
*		test failed.
*		- XST_SUCCESS, if all of MIPI DSI RX Subsystem sub-core self
*		test passed.
*
* @note		None.
*
******************************************************************************/
This function is the main entry point for the self test example using the
XDsiTxSs 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 MIPI DSI TX
.               Subsystem core.

@return
XST_FAILURE if any of MIPI DSI RX Subsystem sub-core self
test failed.
XST_SUCCESS, if all of MIPI DSI RX Subsystem sub-core self
test passed.

@note          None.
This function is the main entry point for the self test example using the XDsiTxSs 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 MIPI DSI TX . Subsystem core . @return XST_FAILURE if any of MIPI DSI RX Subsystem sub - core self test failed . XST_SUCCESS if all of MIPI DSI RX Subsystem sub - core self test passed . @note None .
u32 DsiTxSs_SelfTestExample(u32 DeviceId)
{
	u32 Status;
	XDsiTxSs_Config *ConfigPtr;
	ConfigPtr = XDsiTxSs_LookupConfig(DeviceId);
	if (!ConfigPtr) {
		return XST_FAILURE;
	}
	Status = XDsiTxSs_CfgInitialize(&DsiTxSsInst, ConfigPtr,
					ConfigPtr->BaseAddr);
	if (Status != XST_SUCCESS) {
		xil_printf("MIPI DSI TX SS config initialization failed.\n\r");
		return XST_FAILURE;
	}
	Status = XDsiTxSs_SelfTest(&DsiTxSsInst);
	return Status;
}
u32 DsiTxSs_SelfTestExample ( u32 DeviceId ) { u32 Status ; XDsiTxSs_Config * ConfigPtr ; ConfigPtr = XDsiTxSs_LookupConfig ( DeviceId ) ; if ( ! ConfigPtr ) { return XST_FAILURE ; } Status = XDsiTxSs_CfgInitialize ( & DsiTxSsInst , ConfigPtr , ConfigPtr -> BaseAddr ) ; if ( Status != XST_SUCCESS ) { xil_printf ( " \n \r " ) ; return XST_FAILURE ; } Status = XDsiTxSs_SelfTest ( & DsiTxSsInst ) ; return Status ; }
This function is the main entry point for the self test example using the
XDsiTxSs driver.
This function is the main entry point for the self test example using the XDsiTxSs driver .
/* Obtain the device configuration for the MIPI DSI TX Subsystem */ /* Copy the device configuration into the DsiTxSsInst's Config
	 * structure.
	 */ /* Run the self test. */