XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
void XAxiPmon_EnableMetricCounterTrigger(XAxiPmon *InstancePtr)
{
	u32 RegVal;

	/*
	 * Assert the arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr->Mode != XAPM_MODE_TRACE);

	RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_CTL_OFFSET);
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress, XAPM_CTL_OFFSET,
				RegVal | XAPM_CR_MCNTR_EXTTRIGGER_MASK);
}
/*****************************************************************************/
/**
*
* This function enables External trigger pulse so that Metric Counters can be
* started on external trigger pulse for a Slot.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
*
* @return	None
*
* @note		None
*
*******************************************************************************/
This function enables External trigger pulse so that Metric Counters can be
started on external trigger pulse for a Slot.
This function enables External trigger pulse so that Metric Counters can be started on external trigger pulse for a Slot .
void XAxiPmon_EnableMetricCounterTrigger(XAxiPmon *InstancePtr)
{
	u32 RegVal;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr->Mode != XAPM_MODE_TRACE);
	RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_CTL_OFFSET);
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress, XAPM_CTL_OFFSET,
				RegVal | XAPM_CR_MCNTR_EXTTRIGGER_MASK);
}
void XAxiPmon_EnableMetricCounterTrigger ( XAxiPmon * InstancePtr ) { u32 RegVal ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( InstancePtr -> Mode != XAPM_MODE_TRACE ) ; RegVal = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , XAPM_CTL_OFFSET ) ; XAxiPmon_WriteReg ( InstancePtr -> Config . BaseAddress , XAPM_CTL_OFFSET , RegVal | XAPM_CR_MCNTR_EXTTRIGGER_MASK ) ; }
This function enables External trigger pulse so that Metric Counters can be
started on external trigger pulse for a Slot.
This function enables External trigger pulse so that Metric Counters can be started on external trigger pulse for a Slot .
/*
	 * Assert the arguments.
	 */