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

	/*
	 * Write to the specified Range register
	 */
	RegValue = (u32)RangeUpper << 16;
	RegValue |= RangeLower;
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
			((u32)XAPM_RANGE0_OFFSET + ((u32)IncrementerNum * (u32)16)),
			RegValue);
 }
/****************************************************************************/
/**
*
* This function sets Ranges for Incrementers depending on parameters passed.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
* @param	IncrementerNum specifies the Incrementer for which Ranges
*		need to be set
* @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 Ranges for Incrementers depending on parameters passed.
This function sets Ranges for Incrementers depending on parameters passed .
void XAxiPmon_SetIncrementerRange(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 = (u32)RangeUpper << 16;
	RegValue |= RangeLower;
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
			((u32)XAPM_RANGE0_OFFSET + ((u32)IncrementerNum * (u32)16)),
			RegValue);
 }
void XAxiPmon_SetIncrementerRange ( 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 = ( u32 ) RangeUpper << 16 ; RegValue |= RangeLower ; XAxiPmon_WriteReg ( InstancePtr -> Config . BaseAddress , ( ( u32 ) XAPM_RANGE0_OFFSET + ( ( u32 ) IncrementerNum * ( u32 ) 16 ) ) , RegValue ) ; }
This function sets Ranges for Incrementers depending on parameters passed.
This function sets Ranges for Incrementers depending on parameters passed .
/*
	 * Assert the arguments.
	 */ /*
	 * Write to the specified Range register
	 */