GetCurrentVolt

概述

获取电压。

补充

获取电压:毫伏(mV)。

VC++ .NET VC# .NET VB .NET


VC++ .NET

GetCurrentVolt
调用方法 BOOL GetCurrentVolt(int iSelect, int *iVoltage);
返回值
TRUE : 正常
FALSE : 错误
参数 int iSelect
MONITOR_VOLT_VCOREA : VcoreA电压
MONITOR_VOLT_VCOREB : VcoreB电压
MONITOR_VOLT_P25 : +2.5V
MONITOR_VOLT_P33 : +3.3V
MONITOR_VOLT_P50 : +5.0V
MONITOR_VOLT_P12 : +12V
MONITOR_VOLT_M50 : -5V
MONITOR_VOLT_M12 : -12V
int *iVoltage 电压 (mV)
示例 int ret, iVoltage;
ret = GetCurrentVolt(MONITOR_VOLT_VCOREA, &iVoltage);
必要条件
Header : iocif.h/iocifconst.h
Library : ioctl.lib

页面顶端

VC# .NET

GetCurrentVolt
调用方法 [DllImport("Ioctl.dll")] static extern int GetCurrentVolt(int iSelect, ref int iVoltage);
返回值
非0 : 正常
0 : 错误
参数 int iSelect
MONITOR_VOLT_VCOREA : VcoreA电压
MONITOR_VOLT_VCOREB : VcoreB电压
MONITOR_VOLT_P25 : +2.5V
MONITOR_VOLT_P33 : +3.3V
MONITOR_VOLT_P50 : +5.0V
MONITOR_VOLT_P12 : +12V
MONITOR_VOLT_M50 : -5V
MONITOR_VOLT_M12 : -12V
ref int iVoltage 电压 (mV)
示例 int ret, iVoltage;
ret = GetCurrentVolt(MONITOR_VOLT_VCOREA, ref iVoltage);

页面顶端

VB .NET

GetCurrentVolt
调用方法 Declare Function GetCurrentVolt Lib "Ioctl.dll"(ByVal iSelect As Integer, ByRef iVoltage As Integer)As Integer
返回值
非0 : 正常
0 : 错误
参数 int iSelect
MONITOR_VOLT_VCOREA : VcoreA电压
MONITOR_VOLT_VCOREB : VcoreB电压
MONITOR_VOLT_P25 : +2.5V
MONITOR_VOLT_P33 : +3.3V
MONITOR_VOLT_P50 : +5.0V
MONITOR_VOLT_P12 : +12V
MONITOR_VOLT_M50 : -5V
MONITOR_VOLT_M12 : -12V
ByRef iVoltage As Integer 电压 (mV)
示例 Dim ret As Integer
ret = GetCurrentVolt(MONITOR_VOLT_VCOREA, &iVoltage);

页面顶端