lib/sw_services/xilplmi/src/xplmi_err.c
static u32 XPlmi_UpdateNumErrOutsCount(u8 UpdateType)
{
	static u32 NumErrOuts = 0U;

	if (UpdateType == XPLMI_UPDATE_TYPE_INCREMENT) {
		++NumErrOuts;
	} else {
		if (NumErrOuts > 0U) {
			--NumErrOuts;
		}
	}

	return NumErrOuts;
}
/*****************************************************************************/
/**
 * @brief	This function updates NumErrOuts and returns number of error outs
 * count to the caller.
 *
 * @param	UpdateType is increment/decrement
 *
 * @return	Number of ErrOuts count
 *
 *****************************************************************************/
@brief       This function updates NumErrOuts and returns number of error outs
count to the caller.

@param       UpdateType is increment/decrement

@return      Number of ErrOuts count
@brief This function updates NumErrOuts and returns number of error outs count to the caller . @param UpdateType is increment / decrement @return Number of ErrOuts count
static u32 XPlmi_UpdateNumErrOutsCount(u8 UpdateType)
{
	static u32 NumErrOuts = 0U;
	if (UpdateType == XPLMI_UPDATE_TYPE_INCREMENT) {
		++NumErrOuts;
	} else {
		if (NumErrOuts > 0U) {
			--NumErrOuts;
		}
	}
	return NumErrOuts;
}
static u32 XPlmi_UpdateNumErrOutsCount ( u8 UpdateType ) { static u32 NumErrOuts = 0U ; if ( UpdateType == XPLMI_UPDATE_TYPE_INCREMENT ) { ++ NumErrOuts ; } else { if ( NumErrOuts > 0U ) { -- NumErrOuts ; } } return NumErrOuts ; }
@brief       This function updates NumErrOuts and returns number of error outs
 count to the caller.
@brief This function updates NumErrOuts and returns number of error outs count to the caller .