XilinxProcessorIPLib/drivers/sysmon/src/xsysmon.c
u32 XSysMon_GetSeqInputMode(XSysMon *InstancePtr)
{
	u32 InputMode;

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

	/*
	 *  Get the input mode for all the channels from the ADC Channel
	 * Analog-Input Mode Sequencer Registers.
	 */
	InputMode = XSysMon_ReadReg(InstancePtr->Config.BaseAddress,
				    XSM_SEQ04_OFFSET) & XSM_SEQ04_CH_VALID_MASK;
	InputMode |= (XSysMon_ReadReg(InstancePtr->Config.BaseAddress,
				XSM_SEQ05_OFFSET) & XSM_SEQ05_CH_VALID_MASK) <<
				XSM_SEQ_CH_AUX_SHIFT;

	return InputMode;
}
/****************************************************************************/
/**
*
* This function gets the Analog input mode for all the channels from
* the ADC Channel Analog-Input Mode Sequencer Registers.
*
* @param	InstancePtr is a pointer to the XSysMon instance.
*
* @returns 	The input mode for all the channels.
*		Use XSM_SEQ_CH_* defined in xsysmon_hw.h to interpret the
*		Channel numbers. Bit masks of 1 are the channels for which
*		input mode is differential and bit mask of 0 are the channels
*		for which input mode is unipolar.
*
* @note		None.
*
*****************************************************************************/
This function gets the Analog input mode for all the channels from
the ADC Channel Analog-Input Mode Sequencer Registers.
This function gets the Analog input mode for all the channels from the ADC Channel Analog - Input Mode Sequencer Registers .
u32 XSysMon_GetSeqInputMode(XSysMon *InstancePtr)
{
	u32 InputMode;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	InputMode = XSysMon_ReadReg(InstancePtr->Config.BaseAddress,
				    XSM_SEQ04_OFFSET) & XSM_SEQ04_CH_VALID_MASK;
	InputMode |= (XSysMon_ReadReg(InstancePtr->Config.BaseAddress,
				XSM_SEQ05_OFFSET) & XSM_SEQ05_CH_VALID_MASK) <<
				XSM_SEQ_CH_AUX_SHIFT;
	return InputMode;
}
u32 XSysMon_GetSeqInputMode ( XSysMon * InstancePtr ) { u32 InputMode ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; InputMode = XSysMon_ReadReg ( InstancePtr -> Config . BaseAddress , XSM_SEQ04_OFFSET ) & XSM_SEQ04_CH_VALID_MASK ; InputMode |= ( XSysMon_ReadReg ( InstancePtr -> Config . BaseAddress , XSM_SEQ05_OFFSET ) & XSM_SEQ05_CH_VALID_MASK ) << XSM_SEQ_CH_AUX_SHIFT ; return InputMode ; }
This function gets the Analog input mode for all the channels from
the ADC Channel Analog-Input Mode Sequencer Registers.
This function gets the Analog input mode for all the channels from the ADC Channel Analog - Input Mode Sequencer Registers .
/*
	 * Assert the arguments.
	 */ /*
	 *  Get the input mode for all the channels from the ADC Channel
	 * Analog-Input Mode Sequencer Registers.
	 */