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

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

	/*
	 * Start the conversion by setting the CONVST bit to 1 only if auto-convst
	 * bit is not enabled. This convst bit is self-clearing.
	 */
	ControlStatus = XSysmonPsu_ReadReg(InstancePtr->Config.BaseAddress +
			XSYSMONPSU_PS_SYSMON_CSTS_OFFSET);

	if ((ControlStatus & XSYSMONPSU_PS_SYSMON_CSTS_AUTO_CONVST_MASK )
			!= XSYSMONPSU_PS_SYSMON_CSTS_AUTO_CONVST_MASK) {
		XSysmonPsu_WriteReg(InstancePtr->Config.BaseAddress +
					XSYSMONPSU_PS_SYSMON_CSTS_OFFSET,
					(ControlStatus | (u32)XSYSMONPSU_PS_SYSMON_CSTS_CONVST_MASK));
	}
}
/****************************************************************************/
/**
*
* This function starts the ADC conversion in the Single Channel event driven
* sampling mode. The EOC bit in Status Register will be set once the conversion
* is finished. Refer to the device specification for more details.
*
* @param	InstancePtr is a pointer to the XSysMonPsu instance.
*
* @return	None.
*
* @note		The default state of the CONVST bit is a logic 0. The conversion
*		is started when the CONVST bit is set to 1 from 0.
*		This bit is self-clearing so that the next conversion
*		can be started by setting this bit.
*
*****************************************************************************/
This function starts the ADC conversion in the Single Channel event driven
sampling mode. The EOC bit in Status Register will be set once the conversion
is finished. Refer to the device specification for more details.
This function starts the ADC conversion in the Single Channel event driven sampling mode . The EOC bit in Status Register will be set once the conversion is finished . Refer to the device specification for more details .
void XSysMonPsu_StartAdcConversion(XSysMonPsu *InstancePtr)
{
	u32 ControlStatus;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	ControlStatus = XSysmonPsu_ReadReg(InstancePtr->Config.BaseAddress +
			XSYSMONPSU_PS_SYSMON_CSTS_OFFSET);
	if ((ControlStatus & XSYSMONPSU_PS_SYSMON_CSTS_AUTO_CONVST_MASK )
			!= XSYSMONPSU_PS_SYSMON_CSTS_AUTO_CONVST_MASK) {
		XSysmonPsu_WriteReg(InstancePtr->Config.BaseAddress +
					XSYSMONPSU_PS_SYSMON_CSTS_OFFSET,
					(ControlStatus | (u32)XSYSMONPSU_PS_SYSMON_CSTS_CONVST_MASK));
	}
}
void XSysMonPsu_StartAdcConversion ( XSysMonPsu * InstancePtr ) { u32 ControlStatus ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; ControlStatus = XSysmonPsu_ReadReg ( InstancePtr -> Config . BaseAddress + XSYSMONPSU_PS_SYSMON_CSTS_OFFSET ) ; if ( ( ControlStatus & XSYSMONPSU_PS_SYSMON_CSTS_AUTO_CONVST_MASK ) != XSYSMONPSU_PS_SYSMON_CSTS_AUTO_CONVST_MASK ) { XSysmonPsu_WriteReg ( InstancePtr -> Config . BaseAddress + XSYSMONPSU_PS_SYSMON_CSTS_OFFSET , ( ControlStatus | ( u32 ) XSYSMONPSU_PS_SYSMON_CSTS_CONVST_MASK ) ) ; } }
This function starts the ADC conversion in the Single Channel event driven
sampling mode.
This function starts the ADC conversion in the Single Channel event driven sampling mode .
/* Assert the arguments. */ /*
	 * Start the conversion by setting the CONVST bit to 1 only if auto-convst
	 * bit is not enabled. This convst bit is self-clearing.
	 */