XilinxProcessorIPLib/drivers/prd/src/xprd.c
void XPrd_SetDecouplerState(XPrd *InstancePtr, XPrd_State DecouplerValue)
{
	u32 Data;

	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid((DecouplerValue == XPRD_DECOUPLER_ON) ||
			(DecouplerValue == XPRD_DECOUPLER_OFF));

	XPrd_WriteReg(((InstancePtr->Config.BaseAddress) + XPRD_CTRL_OFFSET),
			DecouplerValue);
}
/*****************************************************************************/
/**
*
* This function is used to set Decoupler On or Off.
*
* @param	InstancePtr is a pointer to the XPrd instance.
* @param	DecouplerValue is to set Decoupler On or Off. Value can be
*		either 0 or 1.
*		Values are
*			- XPRD_DECOUPLER_OFF(0) if Decoupler is Off
*			- XPRD_DECOUPLER_ON(1) if Decoupler is On
*
* @return	None
*
* @note		When Decoupler is On then it separates the Reconfigurable
*		partition from static logic while Partial Reconfiguration
*		occurs.
*
******************************************************************************/
This function is used to set Decoupler On or Off.
This function is used to set Decoupler On or Off .
void XPrd_SetDecouplerState(XPrd *InstancePtr, XPrd_State DecouplerValue)
{
	u32 Data;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid((DecouplerValue == XPRD_DECOUPLER_ON) ||
			(DecouplerValue == XPRD_DECOUPLER_OFF));
	XPrd_WriteReg(((InstancePtr->Config.BaseAddress) + XPRD_CTRL_OFFSET),
			DecouplerValue);
}
void XPrd_SetDecouplerState ( XPrd * InstancePtr , XPrd_State DecouplerValue ) { u32 Data ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( ( DecouplerValue == XPRD_DECOUPLER_ON ) || ( DecouplerValue == XPRD_DECOUPLER_OFF ) ) ; XPrd_WriteReg ( ( ( InstancePtr -> Config . BaseAddress ) + XPRD_CTRL_OFFSET ) , DecouplerValue ) ; }
This function is used to set Decoupler On or Off.
This function is used to set Decoupler On or Off .