mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-04 09:08:30 +00:00
power: Include some known function names and prototypes
This commit is contained in:
@@ -114,6 +114,27 @@ int scePowerGetBatteryChargingStatus(void);
|
|||||||
*/
|
*/
|
||||||
int scePowerIsLowBattery(void);
|
int scePowerIsLowBattery(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if a suspend is required
|
||||||
|
*
|
||||||
|
* @return 1 if suspend is required, 0 otherwise
|
||||||
|
*/
|
||||||
|
int scePowerIsSuspendRequired(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns battery remaining capacity
|
||||||
|
*
|
||||||
|
* @return battery remaining capacity in mAh (milliampere hour)
|
||||||
|
*/
|
||||||
|
int scePowerGetBatteryRemainCapacity(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns battery full capacity
|
||||||
|
*
|
||||||
|
* @return battery full capacity in mAh (milliampere hour)
|
||||||
|
*/
|
||||||
|
int scePowerGetBatteryFullCapacity(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get battery life as integer percent
|
* Get battery life as integer percent
|
||||||
*
|
*
|
||||||
|
@@ -6,10 +6,10 @@
|
|||||||
IMPORT_START "scePower",0x40010000
|
IMPORT_START "scePower",0x40010000
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0001
|
#ifdef F_scePower_0001
|
||||||
IMPORT_FUNC "scePower",0x2B51FE2F,scePower_2B51FE2F
|
IMPORT_FUNC "scePower",0x2B51FE2F,scePowerGetWlanActivity
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0002
|
#ifdef F_scePower_0002
|
||||||
IMPORT_FUNC "scePower",0x442BFBAC,scePower_442BFBAC
|
IMPORT_FUNC "scePower",0x442BFBAC,scePowerGetBacklightMaximum
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0003
|
#ifdef F_scePower_0003
|
||||||
IMPORT_FUNC "scePower",0xEFD3C963,scePowerTick
|
IMPORT_FUNC "scePower",0xEFD3C963,scePowerTick
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
IMPORT_FUNC "scePower",0x27F3292C,scePowerBatteryUpdateInfo
|
IMPORT_FUNC "scePower",0x27F3292C,scePowerBatteryUpdateInfo
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0008
|
#ifdef F_scePower_0008
|
||||||
IMPORT_FUNC "scePower",0xE8E4E204,scePower_E8E4E204
|
IMPORT_FUNC "scePower",0xE8E4E204,scePowerGetForceSuspendCapacity
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0009
|
#ifdef F_scePower_0009
|
||||||
IMPORT_FUNC "scePower",0xB999184C,scePowerGetLowBatteryCapacity
|
IMPORT_FUNC "scePower",0xB999184C,scePowerGetLowBatteryCapacity
|
||||||
@@ -48,13 +48,13 @@
|
|||||||
IMPORT_FUNC "scePower",0xD3075926,scePowerIsLowBattery
|
IMPORT_FUNC "scePower",0xD3075926,scePowerIsLowBattery
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0015
|
#ifdef F_scePower_0015
|
||||||
IMPORT_FUNC "scePower",0x78A1A796,scePower_78A1A796
|
IMPORT_FUNC "scePower",0x78A1A796,scePowerIsSuspendRequired
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0016
|
#ifdef F_scePower_0016
|
||||||
IMPORT_FUNC "scePower",0x94F5A53F,scePowerGetBatteryRemainCapacity
|
IMPORT_FUNC "scePower",0x94F5A53F,scePowerGetBatteryRemainCapacity
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0017
|
#ifdef F_scePower_0017
|
||||||
IMPORT_FUNC "scePower",0xFD18A0FF,scePower_FD18A0FF
|
IMPORT_FUNC "scePower",0xFD18A0FF,scePowerGetBatteryFullCapacity
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0018
|
#ifdef F_scePower_0018
|
||||||
IMPORT_FUNC "scePower",0x2085D15D,scePowerGetBatteryLifePercent
|
IMPORT_FUNC "scePower",0x2085D15D,scePowerGetBatteryLifePercent
|
||||||
@@ -72,13 +72,13 @@
|
|||||||
IMPORT_FUNC "scePower",0x483CE86B,scePowerGetBatteryVolt
|
IMPORT_FUNC "scePower",0x483CE86B,scePowerGetBatteryVolt
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0023
|
#ifdef F_scePower_0023
|
||||||
IMPORT_FUNC "scePower",0x23436A4A,scePower_23436A4A
|
IMPORT_FUNC "scePower",0x23436A4A,scePowerGetInnerTemp
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0024
|
#ifdef F_scePower_0024
|
||||||
IMPORT_FUNC "scePower",0x0CD21B1F,scePower_0CD21B1F
|
IMPORT_FUNC "scePower",0x0CD21B1F,scePowerSetPowerSwMode
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0025
|
#ifdef F_scePower_0025
|
||||||
IMPORT_FUNC "scePower",0x165CE085,scePower_165CE085
|
IMPORT_FUNC "scePower",0x165CE085,scePowerGetPowerSwMode
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0026
|
#ifdef F_scePower_0026
|
||||||
IMPORT_FUNC "scePower",0xD6D016EF,scePowerLock
|
IMPORT_FUNC "scePower",0xD6D016EF,scePowerLock
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
IMPORT_FUNC "scePower",0xAC32C9CC,scePowerRequestSuspend
|
IMPORT_FUNC "scePower",0xAC32C9CC,scePowerRequestSuspend
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0032
|
#ifdef F_scePower_0032
|
||||||
IMPORT_FUNC "scePower",0x2875994B,scePower_2875994B
|
IMPORT_FUNC "scePower",0x2875994B,scePowerRequestSuspendTouchAndGo
|
||||||
#endif
|
#endif
|
||||||
#ifdef F_scePower_0033
|
#ifdef F_scePower_0033
|
||||||
IMPORT_FUNC "scePower",0x3951AF53,scePowerEncodeUBattery
|
IMPORT_FUNC "scePower",0x3951AF53,scePowerEncodeUBattery
|
||||||
|
Reference in New Issue
Block a user