XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
void XAxiPmon_GetIncrementerRange(XAxiPmon *InstancePtr, u8 IncrementerNum,
				u16 *RangeUpper, u16 *RangeLower)
 {

	u32 RegValue;
	/*
	 * Assert the arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr->Mode == XAPM_MODE_ADVANCED);
	Xil_AssertVoid(IncrementerNum < XAPM_MAX_COUNTERS);

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

	*RangeLower = (u16)(RegValue & 0x0000FFFFU);
	*RangeUpper = (u16)((RegValue >> 16) & 0x0000FFFFU);
 }
/****************************************************************************/
/**
*
* This function returns the Ranges of Incrementers Registers.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
* @param	IncrementerNum specifies the Incrementer for which Ranges
*		need to be returned.
* @param 	RangeUpper specifies the user reference variable which returns
*		the Upper Range Value of the specified Incrementer.
* @param 	RangeLower specifies the user reference variable which returns
*		the Lower Range Value of the specified Incrementer.
*
* @return	None.
*
* @note		None
*
*****************************************************************************/
This function returns the Ranges of Incrementers Registers.
This function returns the Ranges of Incrementers Registers .
void XAxiPmon_GetIncrementerRange(XAxiPmon *InstancePtr, u8 IncrementerNum,
				u16 *RangeUpper, u16 *RangeLower)
 {
	u32 RegValue;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr->Mode == XAPM_MODE_ADVANCED);
	Xil_AssertVoid(IncrementerNum < XAPM_MAX_COUNTERS);
	RegValue = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
				((u32)XAPM_RANGE0_OFFSET + ((u32)IncrementerNum * (u32)16)));
	*RangeLower = (u16)(RegValue & 0x0000FFFFU);
	*RangeUpper = (u16)((RegValue >> 16) & 0x0000FFFFU);
 }
void XAxiPmon_GetIncrementerRange ( XAxiPmon * InstancePtr , u8 IncrementerNum , u16 * RangeUpper , u16 * RangeLower ) { u32 RegValue ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( InstancePtr -> Mode == XAPM_MODE_ADVANCED ) ; Xil_AssertVoid ( IncrementerNum < XAPM_MAX_COUNTERS ) ; RegValue = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , ( ( u32 ) XAPM_RANGE0_OFFSET + ( ( u32 ) IncrementerNum * ( u32 ) 16 ) ) ) ; * RangeLower = ( u16 ) ( RegValue & 0x0000FFFFU ) ; * RangeUpper = ( u16 ) ( ( RegValue >> 16 ) & 0x0000FFFFU ) ; }
This function returns the Ranges of Incrementers Registers.
This function returns the Ranges of Incrementers Registers .
/*
	 * Assert the arguments.
	 */