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電圧(1.05V)
MONITOR_VOLT_P33 +3.3V
MONITOR_VOLT_P50 +5.0V
MONITOR_VOLT_P12 +12V
MONITOR_VOLT_M12 -12V
MONITOR_VOLT_P18 +1.8V
ref int iVoltage 電圧値 (mV)
int ret, iVoltage;
ret = GetCurrentVolt(MONITOR_VOLT_VCOREA, &iVoltage);
必要条件
ヘッダー iocif.h/iocifconst.h
ライブラリ ioctl.lib

ページTopへ

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電圧(1.05V)
MONITOR_VOLT_P33 +3.3V
MONITOR_VOLT_P50 +5.0V
MONITOR_VOLT_P12 +12V
MONITOR_VOLT_M12 -12V
MONITOR_VOLT_P18 +1.8V
ref int iVoltage 電圧値 (mV)
int ret, iVoltage;
ret = GetCurrentVolt(MONITOR_VOLT_VCOREA, ref iVoltage);

ページTopへ

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電圧(1.05V)
MONITOR_VOLT_P33 +3.3V
MONITOR_VOLT_P50 +5.0V
MONITOR_VOLT_P12 +12V
MONITOR_VOLT_M12 -12V
MONITOR_VOLT_P18 +1.8V
ByRef iVoltage As Integer 電圧値 (mV)
Dim ret As Integer
ret = GetCurrentVolt(MONITOR_VOLT_VCOREA, &iVoltage);

ページTopへ