XilinxProcessorIPLib/drivers/sysmon/src/xsysmon.c
void XSysMon_StartAdcConversion(XSysMon *InstancePtr)
{
	u32 RegVal;
	/*
	 * Assert the arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	/* Modify only CONVST bit using the InstancePtr->Mask, which
	   stores previously written value in CONVST register */

	RegVal = (InstancePtr->Mask) | XSM_CONVST_CONVST_MASK;

	/*
	 * Start the conversion by setting the CONVST bit to 1 and to 0.
	 */
	XSysMon_WriteReg(InstancePtr->Config.BaseAddress,
			 XSM_CONVST_OFFSET, RegVal);

	RegVal = (InstancePtr->Mask) & ~(XSM_CONVST_CONVST_MASK);

	XSysMon_WriteReg(InstancePtr->Config.BaseAddress,
			 XSM_CONVST_OFFSET, RegVal);
}
/****************************************************************************/
/**
*
* 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 XSysMon 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 cleared in this function 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 XSysMon_StartAdcConversion(XSysMon *InstancePtr)
{
	u32 RegVal;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	RegVal = (InstancePtr->Mask) | XSM_CONVST_CONVST_MASK;
	XSysMon_WriteReg(InstancePtr->Config.BaseAddress,
			 XSM_CONVST_OFFSET, RegVal);
	RegVal = (InstancePtr->Mask) & ~(XSM_CONVST_CONVST_MASK);
	XSysMon_WriteReg(InstancePtr->Config.BaseAddress,
			 XSM_CONVST_OFFSET, RegVal);
}
void XSysMon_StartAdcConversion ( XSysMon * InstancePtr ) { u32 RegVal ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; RegVal = ( InstancePtr -> Mask ) | XSM_CONVST_CONVST_MASK ; XSysMon_WriteReg ( InstancePtr -> Config . BaseAddress , XSM_CONVST_OFFSET , RegVal ) ; RegVal = ( InstancePtr -> Mask ) & ~ ( XSM_CONVST_CONVST_MASK ) ; XSysMon_WriteReg ( InstancePtr -> Config . BaseAddress , XSM_CONVST_OFFSET , RegVal ) ; }
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.
	 */ /* Modify only CONVST bit using the InstancePtr->Mask, which
	   stores previously written value in CONVST register */ /*
	 * Start the conversion by setting the CONVST bit to 1 and to 0.
	 */