diff options
-rw-r--r-- | include/kernel/kernel/suspend.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/kernel/kernel/suspend.h b/include/kernel/kernel/suspend.h new file mode 100644 index 0000000..712e9b3 --- /dev/null +++ b/include/kernel/kernel/suspend.h @@ -0,0 +1,35 @@ +#ifndef _PSP2_KERNEL_SUSPEND_H_ +#define _PSP2_KERNEL_SUSPEND_H_ + +#include <psp2kern/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum SceKernelPowerTickType { + /** Cancel all timers */ + SCE_KERNEL_POWER_TICK_DEFAULT = 0, + /** Cancel automatic suspension timer */ + SCE_KERNEL_POWER_TICK_DISABLE_AUTO_SUSPEND = 1, + /** Cancel OLED-off timer */ + SCE_KERNEL_POWER_TICK_DISABLE_OLED_OFF = 4, + /** Cancel OLED dimming timer */ + SCE_KERNEL_POWER_TICK_DISABLE_OLED_DIMMING = 6 +} SceKernelPowerTickType; + + +/*** + * Cancel specified idle timers to prevent entering in power save processing. + * + * @param[in] type - One of ::SceKernelPowerTickType + * + * @return 0 +*/ +int sceKernelPowerTick(int type); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_KERNEL_SUSPEND_H_ */ |