hp661x.h

来自「MTK 手机软件开发 META 源代码,开发环境: C++ Builder」· C头文件 代码 · 共 512 行 · 第 1/2 页

H
512
字号
#define	HP661X_DISP_NORMAL			0
#define	HP661X_DISP_TEXT			1

#define	HP661X_RELAY_POLARITY_NORMAL     0
#define	HP661X_RELAY_POLARITY_REVERSE    1

#define	HP661X_RI_OFF				0
#define	HP661X_RI_LATCHING			1
#define	HP661X_RI_LIVE				2

#define	HP661X_DFI_SRC_PREV			0
#define	HP661X_DFI_SRC_QUES			1
#define	HP661X_DFI_SRC_OPER			2
#define	HP661X_DFI_SRC_ESB			3
#define	HP661X_DFI_SRC_RQS			4
#define	HP661X_DFI_SRC_OFF			5

#define	HP661X_DIG_OUT_MAX			7
#define HP661X_DIG_OUT_MIN			0

#define	HP661X_PON_STATE_RST		0
#define	HP661X_PON_STATE_RCL0		1

#define	HP661X_CURR_DET_ACDC		0
#define	HP661X_CURR_DET_DC			1

#define	HP661X_CURR_IMM				0
#define	HP661X_CURR_TRIG			1

#define	HP661X_CURR_Q				0
#define	HP661X_CURR_Q_TRIG			1
#define	HP661X_CURR_Q_MAX			2
#define	HP661X_CURR_Q_MIN			3

#define	HP661X_VOLT_IMM				0
#define	HP661X_VOLT_TRIG			1
#define	HP661X_VOLT_OVP				2
#define	HP661X_VOLT_OVP_MAX			3
#define	HP661X_VOLT_OVP_MIN			4

#define	HP661X_VOLT_Q				0
#define	HP661X_VOLT_Q_MAX			1
#define	HP661X_VOLT_Q_MIN			2
#define	HP661X_VOLT_Q_TRIG			3
#define	HP661X_VOLT_Q_TRIG_MAX		4
#define	HP661X_VOLT_Q_TRIG_MIN		5
#define	HP661X_VOLT_Q_OVP			6
#define	HP661X_VOLT_Q_OVP_MAX		7
#define	HP661X_VOLT_Q_OVP_MIN		8

#define	HP661X_ARM_OUTPUT_ONCE				0
#define	HP661X_ARM_OUTPUT_CONTINUOUS		1
#define	HP661X_ARM_OUTPUT_CONTINUOUS_OFF	2

#define	HP661X_TRIG_OUTPUT			0
#define	HP661X_TRIG_SRC_BUS			0

#define	HP661X_SET_VOLT				0
#define	HP661X_SET_CURR				1

#define	HP661X_OUTP_STATUS_OFF		0
#define	HP661X_OUTP_STATUS_CV		1
#define	HP661X_OUTP_STATUS_CC		2
#define	HP661X_OUTP_STATUS_UNREG	3
#define	HP661X_OUTP_STATUS_PROT		4
#define	HP661X_OUTP_STATUS_UNKNOWN	5

#if 0
/* these are read from the unit at init time */
/*
#define	HP661X_VOLT_TRIG_MAX		20.0
#define	HP661X_VOLT_MAX			20.0
#define	HP661X_CURR_TRIG_MAX		2.0
#define	HP661X_CURR_MAX			2.0
*/
#endif

#define	HP661X_SWEEP_INT_MIN		15.6e-6

#define	HP661X_SWEEP_SIZE_MIN		1
#define	HP661X_SWEEP_SIZE_MAX		4096

#define	HP661X_VOLT_TRIG_MIN		0
#define	HP661X_VOLT_MIN				0
#define	HP661X_CURR_TRIG_MIN		0
#define	HP661X_CURR_MIN				0

#define	HP661X_HW_SETTLING_MIN		0
#define	HP661X_HW_SETTLING_MAX		30000		/* 30 seconds */

#define	HP661X_OCP_DELAY_MIN		0
#define	HP661X_OCP_DELAY_MAX		2147480000

#define HP661X_CLOCK_HW_SETTLE		50
#define HP661X_CLOCK_RESET_INST		100
#define HP661X_CLOCK_SELF_TEST		200

        /***************************************************/
        /*  Instrument specific functions                  */
        /***************************************************/
ViStatus _VI_FUNC hp661x_rippleRiDfi (ViSession instrumentHandle);

ViStatus _VI_FUNC hp661x_readOutputStatus (ViSession instrumentHandle,
										   ViPInt16 outputStatus);

ViStatus _VI_FUNC hp661x_outputVoltCurr(ViSession instrumentHandle,
										ViReal64 voltLev,
										ViReal64 currLev);

ViStatus _VI_FUNC hp661x_setMeasure (ViSession instrumentHandle,
									 ViInt16	outputParam,
									 ViReal64	outputLev,
									 ViInt16	settlingTime,
									 ViPReal64	voltQLev,
									 ViPReal64 currQLev,
									 ViPInt16	outputStatus);

ViStatus _VI_FUNC hp661x_doDelay (ViSession	instrumentHandle,
								  ViInt16		milliSeconds);

ViStatus _VI_FUNC hp661x_setDisplay (ViSession instrumentHandle,
									 ViBoolean dispState,
									 ViInt16 dispMode,
									 ViChar _VI_FAR messageText[]);

ViStatus _VI_FUNC hp661x_getDisplay (ViSession instrumentHandle,
									 ViPBoolean dispState,
									 ViPInt16 dispMode,
									 ViChar _VI_FAR messageText[]);

ViStatus _VI_FUNC hp661x_measureVolt (ViSession instrumentHandle,
									  ViPReal64 measVolt);

ViStatus _VI_FUNC hp661x_measureCurr (ViSession instrumentHandle,
									  ViPReal64 measCurr);

ViStatus _VI_FUNC hp661x_setMeasTimeout (ViSession instrumentHandle,
                                         ViInt32 measTimeout);

ViStatus _VI_FUNC hp661x_getMeasTimeout (ViSession instrumentHandle,
                                         ViPInt32 measTimeout);

ViStatus _VI_FUNC hp661x_setSweepParams (ViSession instrumentHandle,
										 ViReal64 sampleInterval,
										 ViInt32 sweepSize);

ViStatus _VI_FUNC hp661x_getSweepParams (ViSession instrumentHandle,
										 ViPReal64 sampleInterval,
										 ViPInt32 sweepSize);

ViStatus _VI_FUNC hp661x_clearOutpProt (ViSession instrumentHandle);

ViStatus _VI_FUNC hp661x_setOutpRelayPolarity (ViSession instrumentHandle,
											   ViInt16 relayPolarity);

ViStatus _VI_FUNC hp661x_getOutpRelayPolarity (ViSession instrumentHandle,
											   ViPInt16 relayPolarity);

ViStatus _VI_FUNC hp661x_setOutpState (ViSession instrumentHandle,
									   ViBoolean outputState,
									   ViBoolean switchRelay);

ViStatus _VI_FUNC hp661x_getOutpState (ViSession instrumentHandle,
									   ViPBoolean outputState);

ViStatus _VI_FUNC hp661x_setPonState (ViSession instrumentHandle,
									  ViInt16 ponState);

ViStatus _VI_FUNC hp661x_getPonState (ViSession instrumentHandle,
									  ViPInt16 ponState);

ViStatus _VI_FUNC hp661x_setOutpRelay (ViSession instrumentHandle,
									   ViBoolean relayState);

ViStatus _VI_FUNC hp661x_getOutpRelay (ViSession instrumentHandle,
									   ViPBoolean relayState);

ViStatus _VI_FUNC hp661x_setRiDfi (ViSession instrumentHandle,
								   ViInt16 riMode,
								   ViBoolean dfiState,
								   ViInt16 dfiSourceBit);

ViStatus _VI_FUNC hp661x_getRiDfi (ViSession instrumentHandle,
								   ViPInt16 riMode,
								   ViPBoolean dfiState,
								   ViPInt16 dfiSourceBit);

ViStatus _VI_FUNC hp661x_setCurrSenseRange (ViSession instrumentHandle,
											ViReal64 currSenseRange);

ViStatus _VI_FUNC hp661x_getCurrSenseRange (ViSession instrumentHandle,
											ViPReal64 currSenseRange);

ViStatus _VI_FUNC hp661x_setCurr (ViSession instrumentHandle,
								  ViInt16 currParam,
								  ViReal64 currLev);

ViStatus _VI_FUNC hp661x_getCurr (ViSession instrumentHandle,
								  ViInt16 currQParam,
								  ViPReal64 currLev);

ViStatus _VI_FUNC hp661x_setVolt (ViSession instrumentHandle,
								  ViInt16 voltParam,
								  ViReal64 voltLev);

ViStatus _VI_FUNC hp661x_getVolt (ViSession instrumentHandle,
								  ViInt16 voltQParam,
								  ViPReal64 voltLev);

ViStatus _VI_FUNC hp661x_setOcpParams (ViSession instrumentHandle,
									   ViBoolean ocpEnable,
									   ViReal64 ccDelay);

ViStatus _VI_FUNC hp661x_getOcpParams (ViSession instrumentHandle,
									   ViPBoolean ocpEnable,
									   ViPReal64 ccDelay);

ViStatus _VI_FUNC hp661x_setDigio (ViSession instrumentHandle, ViInt16 digOutData);

ViStatus _VI_FUNC hp661x_getDigio (ViSession instrumentHandle,
								   ViPInt16 digInData);

ViStatus _VI_FUNC hp661x_getVoltAlcBandwidth (ViSession instrumentHandle,
											  ViPInt32 alcBandwidth);

ViStatus _VI_FUNC hp661x_abort (ViSession instrumentHandle);


ViStatus _VI_FUNC hp661x_arm (ViSession instrumentHandle, ViInt16 trigSystem);

ViStatus _VI_FUNC hp661x_trigger (ViSession instrumentHandle);

ViStatus _VI_FUNC hp661x_trg (ViSession instrumentHandle);

ViStatus _VI_FUNC hp661x_stdEvent_Q (ViSession instrumentHandle,
									 ViPInt16 stdEventStatus);

ViStatus _VI_FUNC hp661x_setEnableReg (ViSession instrumentHandle,
									   ViInt16 enableRegister,
									   ViInt16 enableMask);

ViStatus _VI_FUNC hp661x_getEnableReg (ViSession instrumentHandle,
									   ViInt16 enableRegister,
									   ViPInt16 enableMask);

/* End of instrument specific declarations */
/*---------------------------------------------------------------------------*/

/* Used for "C" externs in C++ */
#if defined(__cplusplus) || defined(__cplusplus__)
}
#endif 

#endif /* HP661X_INCLUDE */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?