All Functions Modules Pages
battery

Functions

BOOLEAN batt.exists ()
 Battery connected into the PSP. More...
 
BOOLEAN batt.charging ()
 Charging Battery. More...
 
NUMBER batt.lifepercent ()
 Remaining percentage (%). More...
 
NUMBER batt.lifetimemin ()
 Remaining time (min). More...
 
STRING batt.lifetime ()
 Remaining time (hour:min). More...
 
NUMBER batt.temp ()
 Battery temperature. More...
 
STRING batt.volt ()
 Battery voltage. More...
 
STRING batt.remaincap ()
 Remaining capacity of the battery. More...
 
STRING batt.fullcap ()
 Total capacity of the battery. More...
 
BOOLEAN batt.low ()
 Low Battery. More...
 
STRING batt.serial ()
 Allows to know the serial number of the Battery. More...
 
STRING batt.mode ()
 The mode in which the battery is. More...
 
NUMBER batt.tonormal ()
 Converts the battery to "NORMAL" mode. More...
 
NUMBER batt.topandora ()
 Converts the battery to "PANDORA" mode. More...
 
NUMBER batt.toautoboot ()
 Converts the battery to "AUTOBOOT" mode. More...
 
NUMBER batt.backupbat (STRING path)
 Makes an EEPROM backup. More...
 
NUMBER batt.restorebat (STRING path)
 Restores an EEPROM backup. More...
 

Detailed Description

Battery functions.

Function Documentation

BOOLEAN batt.exists ( )

Battery connected into the PSP.

Returns
true/false If Battery is connected or not.
BOOLEAN batt.charging ( )

Charging Battery.

Returns
true/false If Battery is charging or not.
NUMBER batt.lifepercent ( )

Remaining percentage (%).

Returns
Remaining percentage of our Battery [0-100]%.
NUMBER batt.lifetimemin ( )

Remaining time (min).

Returns
Remaining time of our battery in minutes.
STRING batt.lifetime ( )

Remaining time (hour:min).

Returns
Remaining time of our battery in hours and minutes.
NUMBER batt.temp ( )

Battery temperature.

Returns
Battery temperature in degrees (ÂșC).
STRING batt.volt ( )

Battery voltage.

Returns
Battery voltage in volts, or "-" if an error has occurred.
STRING batt.remaincap ( )

Remaining capacity of the battery.

Returns
Remaining charge capacity of the battery (mAh), or "-" if an error has occurred.
STRING batt.fullcap ( )

Total capacity of the battery.

Returns
Total charge capacity of the battery (mAh), or "-" if an error has occurred.
BOOLEAN batt.low ( )

Low Battery.

Returns
true/false If our battery level is low or not.
STRING batt.serial ( )

Allows to know the serial number of the Battery.

Returns
Battery serial number.
STRING batt.mode ( )

The mode in which the battery is.

Returns
Mode of the battery:
  • "PANDORA"
  • "AUTOBOOT"
  • "NORMAL"
  • "-"
NUMBER batt.tonormal ( )

Converts the battery to "NORMAL" mode.

Returns
1 if success, 0 otherwise.
NUMBER batt.topandora ( )

Converts the battery to "PANDORA" mode.

Returns
1 if success, 0 otherwise.
NUMBER batt.toautoboot ( )

Converts the battery to "AUTOBOOT" mode.

Returns
1 if success, 0 otherwise.
NUMBER batt.backupbat ( STRING  path)

Makes an EEPROM backup.

Parameters
pathThe path to save the backup.
Note
The filename should have the extension (.bin). Example: "ms0:/eeprom.bin"
Returns
1 if success, 0 otherwise.
NUMBER batt.restorebat ( STRING  path)

Restores an EEPROM backup.

Parameters
pathThe path to the backup.
Note
The filename should have the extension (.bin). Example: "ms0:/eeprom.bin"
Returns
1 if success, 0 otherwise.