XilinxProcessorIPLib/drivers/prd/src/xprd.c
XPrd_State XPrd_GetDecouplerState(XPrd *InstancePtr)
{
	u32 Data;

	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	Data = XPrd_ReadReg((InstancePtr->Config.BaseAddress) +
			XPRD_CTRL_OFFSET) & XPRD_CTRL_DECOUPLER_MASK;

	return (Data) ? XPRD_DECOUPLER_ON : XPRD_DECOUPLER_OFF;
}
/*****************************************************************************/
/**
*
* This function is used to read the state of the Decoupler.
*
* @param	InstancePtr is a pointer to the XPrd instance.
*
* @return	Returns decoupler state.
*		- XPRD_DECOUPLER_ON(1) if Decoupler is enabled.
*		- XPRD_DECOUPLER_OFF(0) if Decoupler is disabled.
*
* @note		None.
*
******************************************************************************/
This function is used to read the state of the Decoupler.
This function is used to read the state of the Decoupler .
XPrd_State XPrd_GetDecouplerState(XPrd *InstancePtr)
{
	u32 Data;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Data = XPrd_ReadReg((InstancePtr->Config.BaseAddress) +
			XPRD_CTRL_OFFSET) & XPRD_CTRL_DECOUPLER_MASK;
	return (Data) ? XPRD_DECOUPLER_ON : XPRD_DECOUPLER_OFF;
}
XPrd_State XPrd_GetDecouplerState ( XPrd * InstancePtr ) { u32 Data ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Data = XPrd_ReadReg ( ( InstancePtr -> Config . BaseAddress ) + XPRD_CTRL_OFFSET ) & XPRD_CTRL_DECOUPLER_MASK ; return ( Data ) ? XPRD_DECOUPLER_ON : XPRD_DECOUPLER_OFF ; }
This function is used to read the state of the Decoupler.
This function is used to read the state of the Decoupler .