XilinxProcessorIPLib/drivers/prd/src/xprd_selftest.c
s32 XPrd_SelfTest(XPrd *InstancePtr)
{
	u32 Data;

	/* Assert validates the input arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	/* Read the value from the status register */
	Data = XPrd_ReadReg((InstancePtr->Config.BaseAddress) +
			XPRD_CTRL_OFFSET);

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function runs a self-test for the PRD driver. This self test reads the
* value from the status register.
*
* @param	InstancePtr is a pointer to the XPrd instance.
*
* @return
*		- XST_SUCCESS if the test was successful.
*
* @note		None.
*
******************************************************************************/
This function runs a self-test for the PRD driver. This self test reads the
value from the status register.
This function runs a self - test for the PRD driver . This self test reads the value from the status register .
s32 XPrd_SelfTest(XPrd *InstancePtr)
{
	u32 Data;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Data = XPrd_ReadReg((InstancePtr->Config.BaseAddress) +
			XPRD_CTRL_OFFSET);
	return XST_SUCCESS;
}
s32 XPrd_SelfTest ( XPrd * InstancePtr ) { u32 Data ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Data = XPrd_ReadReg ( ( InstancePtr -> Config . BaseAddress ) + XPRD_CTRL_OFFSET ) ; return XST_SUCCESS ; }
This function runs a self-test for the PRD driver.
This function runs a self - test for the PRD driver .
/* Assert validates the input arguments */ /* Read the value from the status register */