XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
void XAxiPmon_GetLogEnableRanges(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));


	RegValue = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
				((u32)XAPM_MC0LOGEN_OFFSET + (CounterNum * (u32)16)));

	*RangeLower = (u16)RegValue & 0xFFFFU;
	*RangeUpper = (u16)(RegValue >> 16) & 0xFFFFU;
}
/****************************************************************************/
/**
*
* This function returns the Ranges of specified Metric Counter Log
* Enable Register.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
* @param	CounterNum is the Metric Counter number for which
*		Ranges are to be returned.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 user reference variable which returns
*		the Upper Range Value of the specified Metric Counter
*		Log Enable Register.
* @param 	RangeLower specifies the user reference variable which returns
*		the Lower Range Value of the specified Metric Counter
*		Log Enable Register.
*
* @note		None.
*
*****************************************************************************/
This function returns the Ranges of specified Metric Counter Log
Enable Register.
This function returns the Ranges of specified Metric Counter Log Enable Register .
void XAxiPmon_GetLogEnableRanges(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 = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
				((u32)XAPM_MC0LOGEN_OFFSET + (CounterNum * (u32)16)));
	*RangeLower = (u16)RegValue & 0xFFFFU;
	*RangeUpper = (u16)(RegValue >> 16) & 0xFFFFU;
}
void XAxiPmon_GetLogEnableRanges ( 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 = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , ( ( u32 ) XAPM_MC0LOGEN_OFFSET + ( CounterNum * ( u32 ) 16 ) ) ) ; * RangeLower = ( u16 ) RegValue & 0xFFFFU ; * RangeUpper = ( u16 ) ( RegValue >> 16 ) & 0xFFFFU ; }
This function returns the Ranges of specified Metric Counter Log
Enable Register.
This function returns the Ranges of specified Metric Counter Log Enable Register .
/*
	 * Assert the arguments.
	 */