XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
u32 XAxiPmon_GetWriteId(XAxiPmon *InstancePtr)
{

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

	if (InstancePtr->Config.Is32BitFiltering == 0U)
	{
		RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_ID_OFFSET);
		WriteId = RegVal & XAPM_ID_WID_MASK;
	} else {
		WriteId = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_ID_OFFSET);
	}

	return WriteId;
}
/****************************************************************************/
/**
*
* This function returns Write ID in ID register.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
*
* @return	WriteId is the required Write ID in ID register.
*
* @note		None.
*			If ID filtering for write is of 32 bits(for Zynq MP APM) width then
*			32 bit XAPM_ID_OFFSET contents are returned or if it is 16 bit
*			width then lower 16 bits of XAPM_ID_OFFSET register are returned.
*
*****************************************************************************/
This function returns Write ID in ID register.
This function returns Write ID in ID register .
u32 XAxiPmon_GetWriteId(XAxiPmon *InstancePtr)
{
	u32 WriteId;
	u32 RegVal;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	if (InstancePtr->Config.Is32BitFiltering == 0U)
	{
		RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_ID_OFFSET);
		WriteId = RegVal & XAPM_ID_WID_MASK;
	} else {
		WriteId = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_ID_OFFSET);
	}
	return WriteId;
}
u32 XAxiPmon_GetWriteId ( XAxiPmon * InstancePtr ) { u32 WriteId ; u32 RegVal ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; if ( InstancePtr -> Config . Is32BitFiltering == 0U ) { RegVal = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , XAPM_ID_OFFSET ) ; WriteId = RegVal & XAPM_ID_WID_MASK ; } else { WriteId = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , XAPM_ID_OFFSET ) ; } return WriteId ; }
This function returns Write ID in ID register.
This function returns Write ID in ID register .
/*
	 * Assert the arguments.
	 */