XilinxProcessorIPLib/drivers/sysmonpsu/src/xsysmonpsu.c
void XSysMonPsu_SetPSAutoConversion(XSysMonPsu *InstancePtr)
{
	u32 PSSysMonStatusReg;

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

	/* Set the automatic conversion triggering in PS control register. */
	PSSysMonStatusReg = XSysmonPsu_ReadReg(InstancePtr->Config.BaseAddress +
			XSYSMONPSU_PS_SYSMON_CSTS_OFFSET);
	PSSysMonStatusReg |= XSYSMONPSU_PS_SYSMON_CSTS_AUTO_CONVST_MASK;
	XSysmonPsu_WriteReg(InstancePtr->Config.BaseAddress +
			XSYSMONPSU_PS_SYSMON_CSTS_OFFSET, PSSysMonStatusReg);
}
/****************************************************************************/
/**
*
* This function sets the conversion to be automatic for PS SysMon.
*
* @param	InstancePtr is a pointer to the XSysMonPsu instance.
*
* @return	None
*
* @note		In the auto-trigger mode, sample rate is of 1 Million samples.
*
*****************************************************************************/
This function sets the conversion to be automatic for PS SysMon.
This function sets the conversion to be automatic for PS SysMon .
void XSysMonPsu_SetPSAutoConversion(XSysMonPsu *InstancePtr)
{
	u32 PSSysMonStatusReg;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	PSSysMonStatusReg = XSysmonPsu_ReadReg(InstancePtr->Config.BaseAddress +
			XSYSMONPSU_PS_SYSMON_CSTS_OFFSET);
	PSSysMonStatusReg |= XSYSMONPSU_PS_SYSMON_CSTS_AUTO_CONVST_MASK;
	XSysmonPsu_WriteReg(InstancePtr->Config.BaseAddress +
			XSYSMONPSU_PS_SYSMON_CSTS_OFFSET, PSSysMonStatusReg);
}
void XSysMonPsu_SetPSAutoConversion ( XSysMonPsu * InstancePtr ) { u32 PSSysMonStatusReg ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; PSSysMonStatusReg = XSysmonPsu_ReadReg ( InstancePtr -> Config . BaseAddress + XSYSMONPSU_PS_SYSMON_CSTS_OFFSET ) ; PSSysMonStatusReg |= XSYSMONPSU_PS_SYSMON_CSTS_AUTO_CONVST_MASK ; XSysmonPsu_WriteReg ( InstancePtr -> Config . BaseAddress + XSYSMONPSU_PS_SYSMON_CSTS_OFFSET , PSSysMonStatusReg ) ; }
This function sets the conversion to be automatic for PS SysMon.
This function sets the conversion to be automatic for PS SysMon .
/* Assert the arguments. */ /* Set the automatic conversion triggering in PS control register. */