XilinxProcessorIPLib/drivers/devcfg/src/xdevcfg.c
void XDcfg_ClearControlRegister(XDcfg *InstancePtr, u32 Mask)
{
	u32 CtrlReg;
	/*
	 * Assert the arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);


	CtrlReg = XDcfg_ReadReg(InstancePtr->Config.BaseAddr,
					XDCFG_CTRL_OFFSET);

	XDcfg_WriteReg(InstancePtr->Config.BaseAddr, XDCFG_CTRL_OFFSET,
			(CtrlReg & ~Mask));

}
/****************************************************************************/
/**
*
* The function Clears the specified bit positions of the Control Register.
*
* @param	InstancePtr is a pointer to the XDcfg instance.
* @param	Mask is the 32 bit value which holds the bit positions to be cleared.
*
* @return	None.
*
* @note		None.
*
*****************************************************************************/
The function Clears the specified bit positions of the Control Register.
The function Clears the specified bit positions of the Control Register .
void XDcfg_ClearControlRegister(XDcfg *InstancePtr, u32 Mask)
{
	u32 CtrlReg;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	CtrlReg = XDcfg_ReadReg(InstancePtr->Config.BaseAddr,
					XDCFG_CTRL_OFFSET);
	XDcfg_WriteReg(InstancePtr->Config.BaseAddr, XDCFG_CTRL_OFFSET,
			(CtrlReg & ~Mask));
}
void XDcfg_ClearControlRegister ( XDcfg * InstancePtr , u32 Mask ) { u32 CtrlReg ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; CtrlReg = XDcfg_ReadReg ( InstancePtr -> Config . BaseAddr , XDCFG_CTRL_OFFSET ) ; XDcfg_WriteReg ( InstancePtr -> Config . BaseAddr , XDCFG_CTRL_OFFSET , ( CtrlReg & ~ Mask ) ) ; }
The function Clears the specified bit positions of the Control Register.
The function Clears the specified bit positions of the Control Register .
/*
	 * Assert the arguments.
	 */