XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
void XAxiPmon_SetWriteIdMask(XAxiPmon *InstancePtr, u32 WrMask)
{
	u32 RegVal;
	/*
	 * Assert the arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	if (InstancePtr->Config.Is32BitFiltering == 0U)
	{
		RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_IDMASK_OFFSET);
		RegVal = RegVal & ~(XAPM_MASKID_WID_MASK);
		RegVal = RegVal | WrMask;
		XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
							XAPM_IDMASK_OFFSET, RegVal);
	} else {
		XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
							XAPM_IDMASK_OFFSET, WrMask);
	}
}
/****************************************************************************/
/**
*
* This function sets Write ID Mask in ID Mask register.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
* @param	WrMask is the Write ID mask to be written in ID register.
*
* @return	None.
*
* @note
*			If ID masking for write is of 32 bits(for Zynq MP APM) width then
*			WrMask is written to XAPM_IDMASK_OFFSET or if it is 16 bit width
*			then lower 16 bits of WrMask are written to XAPM_IDMASK_OFFSET.
*
*****************************************************************************/
This function sets Write ID Mask in ID Mask register.
This function sets Write ID Mask in ID Mask register .
void XAxiPmon_SetWriteIdMask(XAxiPmon *InstancePtr, u32 WrMask)
{
	u32 RegVal;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	if (InstancePtr->Config.Is32BitFiltering == 0U)
	{
		RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_IDMASK_OFFSET);
		RegVal = RegVal & ~(XAPM_MASKID_WID_MASK);
		RegVal = RegVal | WrMask;
		XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
							XAPM_IDMASK_OFFSET, RegVal);
	} else {
		XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
							XAPM_IDMASK_OFFSET, WrMask);
	}
}
void XAxiPmon_SetWriteIdMask ( XAxiPmon * InstancePtr , u32 WrMask ) { u32 RegVal ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; if ( InstancePtr -> Config . Is32BitFiltering == 0U ) { RegVal = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , XAPM_IDMASK_OFFSET ) ; RegVal = RegVal & ~ ( XAPM_MASKID_WID_MASK ) ; RegVal = RegVal | WrMask ; XAxiPmon_WriteReg ( InstancePtr -> Config . BaseAddress , XAPM_IDMASK_OFFSET , RegVal ) ; } else { XAxiPmon_WriteReg ( InstancePtr -> Config . BaseAddress , XAPM_IDMASK_OFFSET , WrMask ) ; } }
This function sets Write ID Mask in ID Mask register.
This function sets Write ID Mask in ID Mask register .
/*
	 * Assert the arguments.
	 */