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

	u32 WrMask;
	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_IDMASK_OFFSET);
		WrMask = RegVal & XAPM_MASKID_WID_MASK;
	} else {
		WrMask = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_IDMASK_OFFSET);
	}

	return WrMask;
}
/****************************************************************************/
/**
*
* This function returns Write ID Mask in ID Mask register.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
*
* @return	WrMask is the required Write ID Mask in ID Mask register.
*
* @note
*			If ID masking for write is of 32 bits(for Zynq MP APM) width then
*			32 bit XAPM_IDMASK_OFFSET contents are returned or if it is 16 bit
*			width then lower 16 bits of XAPM_IDMASK_OFFSET register
*			are returned.
*
*****************************************************************************/
This function returns Write ID Mask in ID Mask register.
This function returns Write ID Mask in ID Mask register .
u32 XAxiPmon_GetWriteIdMask(XAxiPmon *InstancePtr)
{
	u32 WrMask;
	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_IDMASK_OFFSET);
		WrMask = RegVal & XAPM_MASKID_WID_MASK;
	} else {
		WrMask = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_IDMASK_OFFSET);
	}
	return WrMask;
}
u32 XAxiPmon_GetWriteIdMask ( XAxiPmon * InstancePtr ) { u32 WrMask ; 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_IDMASK_OFFSET ) ; WrMask = RegVal & XAPM_MASKID_WID_MASK ; } else { WrMask = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , XAPM_IDMASK_OFFSET ) ; } return WrMask ; }
This function returns Write ID Mask in ID Mask register.
This function returns Write ID Mask in ID Mask register .
/*
	 * Assert the arguments.
	 */