XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
void XAxiPmon_SetLogEnableRanges(XAxiPmon *InstancePtr, u32 CounterNum,
					u16 RangeUpper, u16 RangeLower)
{
	u32 RegValue;
	/*
	 * Assert the arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(CounterNum < XAPM_MAX_COUNTERS);
	Xil_AssertVoid((InstancePtr->Mode == XAPM_MODE_ADVANCED) &&
				(InstancePtr->Config.IsEventCount == 1U));


	/*
	 * Write the specified Ranges to corresponding Metric Counter Log
	 * Enable Register
	 */
	RegValue = (u32)RangeUpper << 16;
	RegValue |= RangeLower;
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
		((u32)XAPM_MC0LOGEN_OFFSET + (CounterNum * (u32)16)), RegValue);

}
/****************************************************************************/
/**
*
* This function sets the Upper and Lower Ranges for specified Metric Counter
* Log Enable Register.Event Logging starts when corresponding Metric Counter
* value falls in between these ranges
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
* @param	CounterNum is the Metric Counter number for which
*		Ranges are to be assigned.Use the XAPM_METRIC_COUNTER*
*		defines for the counter number in xaxipmon.h.
*		The valid values are 0 (XAPM_METRIC_COUNTER_0) to
*		9 (XAPM_METRIC_COUNTER_9).
* @param 	RangeUpper specifies the Upper limit in 32 bit Register
* @param 	RangeLower specifies the Lower limit in 32 bit Register
* @return	None
*
* @note		None.
*
*****************************************************************************/
This function sets the Upper and Lower Ranges for specified Metric Counter
Log Enable Register.Event Logging starts when corresponding Metric Counter
value falls in between these ranges
This function sets the Upper and Lower Ranges for specified Metric Counter Log Enable Register . Event Logging starts when corresponding Metric Counter value falls in between these ranges
void XAxiPmon_SetLogEnableRanges(XAxiPmon *InstancePtr, u32 CounterNum,
					u16 RangeUpper, u16 RangeLower)
{
	u32 RegValue;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(CounterNum < XAPM_MAX_COUNTERS);
	Xil_AssertVoid((InstancePtr->Mode == XAPM_MODE_ADVANCED) &&
				(InstancePtr->Config.IsEventCount == 1U));
	RegValue = (u32)RangeUpper << 16;
	RegValue |= RangeLower;
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
		((u32)XAPM_MC0LOGEN_OFFSET + (CounterNum * (u32)16)), RegValue);
}
void XAxiPmon_SetLogEnableRanges ( XAxiPmon * InstancePtr , u32 CounterNum , u16 RangeUpper , u16 RangeLower ) { u32 RegValue ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( CounterNum < XAPM_MAX_COUNTERS ) ; Xil_AssertVoid ( ( InstancePtr -> Mode == XAPM_MODE_ADVANCED ) && ( InstancePtr -> Config . IsEventCount == 1U ) ) ; RegValue = ( u32 ) RangeUpper << 16 ; RegValue |= RangeLower ; XAxiPmon_WriteReg ( InstancePtr -> Config . BaseAddress , ( ( u32 ) XAPM_MC0LOGEN_OFFSET + ( CounterNum * ( u32 ) 16 ) ) , RegValue ) ; }
This function sets the Upper and Lower Ranges for specified Metric Counter
Log Enable Register.Event Logging starts when corresponding Metric Counter
value falls in between these ranges
This function sets the Upper and Lower Ranges for specified Metric Counter Log Enable Register . Event Logging starts when corresponding Metric Counter value falls in between these ranges
/*
	 * Assert the arguments.
	 */ /*
	 * Write the specified Ranges to corresponding Metric Counter Log
	 * Enable Register
	 */