XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
u32 XAxiPmon_GetSampledIncrementer(XAxiPmon *InstancePtr, u32 IncrementerNum)
{
	u32 RegValue;

	/*
	 * Assert the arguments.
	 */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid((InstancePtr->Mode == XAPM_MODE_ADVANCED) &&
				(InstancePtr->Config.IsEventCount == 1U) &&
				(InstancePtr->Config.HaveSampledCounters == 1U));
	Xil_AssertNonvoid(IncrementerNum < XAPM_MAX_COUNTERS);

	RegValue = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
				((u32)XAPM_SINC0_OFFSET + (IncrementerNum * (u32)16)));
	return RegValue;
}
/****************************************************************************/
/**
*
* This function returns the contents of the Sampled Incrementer Register.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
* @param	IncrementerNum is the number of the Sampled Incrementer
*		register to read.Use the XAPM_INCREMENTER_* defines for the
*		Incrementer number.The valid values are 0 (XAPM_INCREMENTER_0)
*		to 9 (XAPM_INCREMENTER_9).
* @param	IncrementerNum is the number of the specified Sampled
*		Incrementer register
* @return	RegValue is content of specified Sampled Incrementer register.
*
* @note		None.
*
*****************************************************************************/
This function returns the contents of the Sampled Incrementer Register.
This function returns the contents of the Sampled Incrementer Register .
u32 XAxiPmon_GetSampledIncrementer(XAxiPmon *InstancePtr, u32 IncrementerNum)
{
	u32 RegValue;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid((InstancePtr->Mode == XAPM_MODE_ADVANCED) &&
				(InstancePtr->Config.IsEventCount == 1U) &&
				(InstancePtr->Config.HaveSampledCounters == 1U));
	Xil_AssertNonvoid(IncrementerNum < XAPM_MAX_COUNTERS);
	RegValue = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
				((u32)XAPM_SINC0_OFFSET + (IncrementerNum * (u32)16)));
	return RegValue;
}
u32 XAxiPmon_GetSampledIncrementer ( XAxiPmon * InstancePtr , u32 IncrementerNum ) { u32 RegValue ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertNonvoid ( ( InstancePtr -> Mode == XAPM_MODE_ADVANCED ) && ( InstancePtr -> Config . IsEventCount == 1U ) && ( InstancePtr -> Config . HaveSampledCounters == 1U ) ) ; Xil_AssertNonvoid ( IncrementerNum < XAPM_MAX_COUNTERS ) ; RegValue = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , ( ( u32 ) XAPM_SINC0_OFFSET + ( IncrementerNum * ( u32 ) 16 ) ) ) ; return RegValue ; }
This function returns the contents of the Sampled Incrementer Register.
This function returns the contents of the Sampled Incrementer Register .
/*
	 * Assert the arguments.
	 */