GetCurrentVolt

Outline

Voltage is acquired.

Supplement

Voltage is acquired by mV.

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


VC++ .NET

GetCurrentVolt
Calling Method BOOL GetCurrentVolt(int iSelect, int *iVoltage);
Return Value
TRUE : Normal
FALSE : Error
Argument int iSelect
MONITOR_VOLT_VCOREA : VcoreA voltage
MONITOR_VOLT_VCOREB : VcoreB voltage(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
int *iVoltage Voltage (mV)
Example int ret, iVoltage;
ret = GetCurrentVolt(MONITOR_VOLT_VCOREA, &iVoltage);
Necessary Condition
Header : iocif.h/iocifconst.h
Library : ioctl.lib

Top of Page

VC# .NET

GetCurrentVolt
Calling Method [DllImport("Ioctl.dll")] static extern int GetCurrentVolt(int iSelect, ref int iVoltage);
Return Value
Excluding 0 : Normal
0 : Error
Argument int iSelect
MONITOR_VOLT_VCOREA : VcoreA voltage
MONITOR_VOLT_VCOREB : VcoreB voltage(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 Voltage (mV)
Example int ret, iVoltage;
ret = GetCurrentVolt(MONITOR_VOLT_VCOREA, ref iVoltage);

Top of Page

VB .NET

GetCurrentVolt
Calling Method Declare Function GetCurrentVolt Lib "Ioctl.dll"(ByVal iSelect As Integer, ByRef iVoltage As Integer)As Integer
Return Value
Excluding 0 : Normal
0 : Error
Argument int iSelect
MONITOR_VOLT_VCOREA : VcoreA voltage
MONITOR_VOLT_VCOREB : VcoreB voltage(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 Voltage (mV)
Example Dim ret As Integer
ret = GetCurrentVolt(MONITOR_VOLT_VCOREA, &iVoltage);

Top of Page