XilinxProcessorIPLib/drivers/prc/src/xprc.c
u32 XPrc_GetVsmErrorStatus(XPrc *InstancePtr, u32 VsmIdOrStatus)
{
	u32 Status = VsmIdOrStatus;

	if (InstancePtr != NULL) {
		Status = XPrc_ReadStatusReg(InstancePtr, VsmIdOrStatus);
	}

	return (Status & XPRC_SR_ERROR_MASK) >> XPRC_SR_ERROR_SHIFT;
}
/*****************************************************************************/
/**
*
* This function is used to get a VSM's Error Status.
*
* @param	InstancePtr is a pointer to the PRC instance.
* @param	VsmIdOrStatus is an identifier of the VSM to access or
*		a pre-read status word.
*
* @return
*		- 0 if there's no error.
*		- Error code if there is an error.
*
* @note		There are two modes of operation.  If InstancePtr is NULL then
*		VsmIdOrStatus contains a previously read status value. Just
*		decode it. If InstancePtr is not NULL then read a fresh status
*		value.
*
******************************************************************************/
This function is used to get a VSM's Error Status.
This function is used to get a VSM ' s Error Status .
u32 XPrc_GetVsmErrorStatus(XPrc *InstancePtr, u32 VsmIdOrStatus)
{
	u32 Status = VsmIdOrStatus;
	if (InstancePtr != NULL) {
		Status = XPrc_ReadStatusReg(InstancePtr, VsmIdOrStatus);
	}
	return (Status & XPRC_SR_ERROR_MASK) >> XPRC_SR_ERROR_SHIFT;
}
u32 XPrc_GetVsmErrorStatus ( XPrc * InstancePtr , u32 VsmIdOrStatus ) { u32 Status = VsmIdOrStatus ; if ( InstancePtr != NULL ) { Status = XPrc_ReadStatusReg ( InstancePtr , VsmIdOrStatus ) ; } return ( Status & XPRC_SR_ERROR_MASK ) >> XPRC_SR_ERROR_SHIFT ; }
This function is used to get a VSM's Error Status.
This function is used to get a VSM ' s Error Status .