Manual

Copyright © Dr Robot Inc. 2008
41
V.5. short GetBat2Temp( )
Description:
GetBat2Temp returns the battery2 temperature sensor (AD value)
Syntax: ival = GetBat2Temp ();
Parameter: void
Return value: short ival
The value must be in the range of 1100 – 2500, if beyond this range, stop charging the
battery
V.6. short GetDCINVol()
Description:
GetDCINVol returns the DCIN voltage (AD value)
Syntax: ival = GetDCINVol ();
Parameter: void
Return value: short ival
Remarks:
The DCIN voltage
VBat2 = (ival /4095 *Vref ) * 8
V.7. byte GetCHGPath( )
Description:
GetCHGPath returns the charge path
Syntax: ival = GetCHGPath ();
Parameter: void
Return value: Byte ival
Bit Description
0 X
1 X
2 X
3 X
4 X
5 X
6 Charge Battery 2
7 Charge Battery 1
V.8. byte GetPowerPath( )
Description:
GetPowerPath returns the power path of controller
Syntax: ival = GetPowerPath ();