XilinxProcessorIPLib/drivers/cfupmc/src/xcfupmc.c
void XCfupmc_MaskRegWrite(const XCfupmc *InstancePtr, u32 Addr, u32 Mask, u32 Val)
{
	Xil_AssertVoid(InstancePtr != NULL);

	XCfupmc_WriteReg(CFU_APB_CFU_MASK, Mask);
	XCfupmc_WriteReg(Addr,
		((XCfupmc_ReadReg(Addr)&(~Mask)) | Val));

	return;
}
/*****************************************************************************/
/**
 * This function does CFI register write using MASK register
 *
 * @param	InstancePtr is a pointer to the XCfupmc instance.
 * @param	Addr Address of the regiser to be written
 * @param	Mask Mask of the bit field to be written
 * @param	Val Value of bit field
 *
 * @return  None
 *
 ******************************************************************************/
This function does CFI register write using MASK register
@param       InstancePtr is a pointer to the XCfupmc instance.
@param       Addr Address of the regiser to be written
@param       Mask Mask of the bit field to be written
@param       Val Value of bit field

@return  None
This function does CFI register write using MASK register @param InstancePtr is a pointer to the XCfupmc instance . @param Addr Address of the regiser to be written @param Mask Mask of the bit field to be written @param Val Value of bit field @return None
void XCfupmc_MaskRegWrite(const XCfupmc *InstancePtr, u32 Addr, u32 Mask, u32 Val)
{
	Xil_AssertVoid(InstancePtr != NULL);
	XCfupmc_WriteReg(CFU_APB_CFU_MASK, Mask);
	XCfupmc_WriteReg(Addr,
		((XCfupmc_ReadReg(Addr)&(~Mask)) | Val));
	return;
}
void XCfupmc_MaskRegWrite ( const XCfupmc * InstancePtr , u32 Addr , u32 Mask , u32 Val ) { Xil_AssertVoid ( InstancePtr != NULL ) ; XCfupmc_WriteReg ( CFU_APB_CFU_MASK , Mask ) ; XCfupmc_WriteReg ( Addr , ( ( XCfupmc_ReadReg ( Addr ) & ( ~ Mask ) ) | Val ) ) ; return ; }
This function does CFI register write using MASK register
 @param       InstancePtr is a pointer to the XCfupmc instance.
This function does CFI register write using MASK register @param InstancePtr is a pointer to the XCfupmc instance .