XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
u8 XAxiPmon_GetWrLatencyEnd(XAxiPmon *InstancePtr)
{
	u8 RegVal;

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

	RegVal = (u8)XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							(u32)XAPM_CTL_OFFSET);
	RegVal = RegVal & XAPM_CR_WRLATENCY_END_MASK;
	if (RegVal != XAPM_LATENCY_LASTWR) {
		return (u8)XAPM_LATENCY_FIRSTWR;
	}
	else {
		return (u8)XAPM_LATENCY_LASTWR;
	}
}
/*****************************************************************************/
/**
*
* This function returns Write Latency End point.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
*
* @return	Returns 0 - XAPM_LATENCY_LASTWR or
*			1 - XAPM_LATENCY_FIRSTWR.
*
* @note		None
*
*******************************************************************************/
This function returns Write Latency End point.
This function returns Write Latency End point .
u8 XAxiPmon_GetWrLatencyEnd(XAxiPmon *InstancePtr)
{
	u8 RegVal;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	RegVal = (u8)XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							(u32)XAPM_CTL_OFFSET);
	RegVal = RegVal & XAPM_CR_WRLATENCY_END_MASK;
	if (RegVal != XAPM_LATENCY_LASTWR) {
		return (u8)XAPM_LATENCY_FIRSTWR;
	}
	else {
		return (u8)XAPM_LATENCY_LASTWR;
	}
}
u8 XAxiPmon_GetWrLatencyEnd ( XAxiPmon * InstancePtr ) { u8 RegVal ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; RegVal = ( u8 ) XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , ( u32 ) XAPM_CTL_OFFSET ) ; RegVal = RegVal & XAPM_CR_WRLATENCY_END_MASK ; if ( RegVal != XAPM_LATENCY_LASTWR ) { return ( u8 ) XAPM_LATENCY_FIRSTWR ; } else { return ( u8 ) XAPM_LATENCY_LASTWR ; } }
This function returns Write Latency End point.
This function returns Write Latency End point .
/*
	 * Assert the arguments.
	 */