MT_GetVoltage

■Description

Get power supply voltage value.

■Synopsis

int MT_GetVoltage(int fd, PVOLTAGE pvol)

■Argument

  int fd
    Please specify handle acquired by MT_Open function.

  PVOLTAGE pvol
    Specify a pointer to the structure storing the power supply voltage value.
    If the function succeeds, the voltage data [mv] is stored in this structure.
    The PVOLTAGE structure is as follows.

    typedef struct {
        long lVCore;
        long lV33;
        long lV5;
        long lV12;
        long lVM12;
        long lVM5;
        long lV5SB;
        long lVBat;
        long lV1_5;
        long lV1_8;
        long lV1_05;
        long lV3VSB;
        long lVASB;
        long lVExt[15];
    } VOLTAGE, *PVOLTAGE;

    The voltage data in the table below is stored for each member variable.
    The voltage that can be acquired depends on the model.
    0x80000000 is stored in the variable for models that do not support it.

Member variable Information to be stored Compatible models
VPC-1700、
VPC-3100
VPC-5000-J MR4100 EPC-C5000 LPC-400 VPC-1800、
VPC-3200、
LPC-1800
lVCore core voltage[mv] ○ ○ ○ ○ ○ ○
lV33 3.3V supply voltage[mv] ○ ○ ○ ○ ○ ×
lV5 5V supply voltage[mv] ○ ○ ○ ○ ○ ○
lV12 12V supply voltage[mv] ○ ○ ○ ○ ○ ○
lVM12 Reserved - - - - - -
lVM5 Reserved - - - - - -
lV5SB 5V stand-by voltage[mv] ○ ○ ○ ○ ○ ×
lVbatt battery voltage[mv] ○ ○ ○ ○ ○ ×
lV1_5 1.5V supply voltage[mv] × × × × × ×
lV1_8 1.8V supply voltage[mv] × × × × × ×
lV1_05 1.05V supply voltage[mv] × × × × × ○
lV3VSB 3.3V stand-by voltage[mv] ○ ○ ○ ○ ○ ×
lVASB AVSB(mv) × ○ × × ○ ×
lVExt[15] Reserved - - - - - -

■RETURN VALUE

If the function succeeds, NO_ERROR is returned.
Voltage values are stored according to the model of pvol.
If the function fails, a code other than NO_ERROR is returned.
The other errors : Error code details



Function List