XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
u32 XAxiPmon_GetSwDataReg(XAxiPmon *InstancePtr)
{
	 u32 SwData;

	/*
	 * Assert the arguments.
	 */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	/*
	 * Set Metric Selector Register
	 */
	SwData = (u32)XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
						XAPM_SWD_OFFSET);
	return SwData;
}
/****************************************************************************/
/**
*
* This function returns contents of Software-written Data Register.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
*
* @return	SwData.
*
* @note		None.
*
*****************************************************************************/
This function returns contents of Software-written Data Register.
This function returns contents of Software - written Data Register .
u32 XAxiPmon_GetSwDataReg(XAxiPmon *InstancePtr)
{
	 u32 SwData;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	SwData = (u32)XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
						XAPM_SWD_OFFSET);
	return SwData;
}
u32 XAxiPmon_GetSwDataReg ( XAxiPmon * InstancePtr ) { u32 SwData ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; SwData = ( u32 ) XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , XAPM_SWD_OFFSET ) ; return SwData ; }
This function returns contents of Software-written Data Register.
This function returns contents of Software - written Data Register .
/*
	 * Assert the arguments.
	 */ /*
	 * Set Metric Selector Register
	 */