XilinxProcessorIPLib/drivers/prc/src/xprc_selftest.c
s32 XPrc_SelfTest(XPrc *InstancePtr)
{
	u16 VsmId = 0;
	u32 Value;
	u32 Address;

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

	/* Read value from the Status register */
	Address = XPrc_GetRegisterAddress(InstancePtr, VsmId,
			XPRC_STATUS_REG, XPRC_REG_TABLE_ROW);
	Value = XPrc_ReadReg(Address);

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function runs a self-test on the PRC driver. This self test reads from
* the status register.
*
* @param	InstancePtr is a pointer to the XPrc instance.
*
* @return
*		- XST_SUCCESS if the test is successful.
*
* @note		None
*
******************************************************************************/
This function runs a self-test on the PRC driver. This self test reads from
the status register.
This function runs a self - test on the PRC driver . This self test reads from the status register .
s32 XPrc_SelfTest(XPrc *InstancePtr)
{
	u16 VsmId = 0;
	u32 Value;
	u32 Address;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Address = XPrc_GetRegisterAddress(InstancePtr, VsmId,
			XPRC_STATUS_REG, XPRC_REG_TABLE_ROW);
	Value = XPrc_ReadReg(Address);
	return XST_SUCCESS;
}
s32 XPrc_SelfTest ( XPrc * InstancePtr ) { u16 VsmId = 0 ; u32 Value ; u32 Address ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Address = XPrc_GetRegisterAddress ( InstancePtr , VsmId , XPRC_STATUS_REG , XPRC_REG_TABLE_ROW ) ; Value = XPrc_ReadReg ( Address ) ; return XST_SUCCESS ; }
This function runs a self-test on the PRC driver.
This function runs a self - test on the PRC driver .
/* Assert validates the input arguments */ /* Read value from the Status register */