From 1f6d23c049a2f676d341623ff92af1241d4b5efd Mon Sep 17 00:00:00 2001 From: devnoname120 Date: Mon, 10 Apr 2017 01:13:51 +0200 Subject: Add some brightness functions --- include/user/avconfig.h | 34 ++++++++++++++++++++++++++++++++++ nids/360/SceAVConfig.yml | 9 +++++++++ 2 files changed, 43 insertions(+) create mode 100644 include/user/avconfig.h create mode 100644 nids/360/SceAVConfig.yml diff --git a/include/user/avconfig.h b/include/user/avconfig.h new file mode 100644 index 0000000..fe0596d --- /dev/null +++ b/include/user/avconfig.h @@ -0,0 +1,34 @@ +#ifndef _PSP2_AVCONFIG_H_ +#define _PSP2_AVCONFIG_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/*** + * Get the maximum brightness. + * + * @param[out] maxBrightness - Maximum brightness. + * + * @return 0 on success, < 0 on error. + */ +int sceAVConfigGetDisplayMaxBrightness(int *maxBrightness); + +/*** + * Set the screen brightness. + * + * @param brightness - Brightness that the screen will be set to (range 21-65536, 0 turns off the screen). + * + * @return 0 on success, < 0 on error. + */ +int sceAVConfigSetDisplayBrightness(int brightness); + + +#ifdef __cplusplus +} +#endif + +#endif + diff --git a/nids/360/SceAVConfig.yml b/nids/360/SceAVConfig.yml new file mode 100644 index 0000000..5c54a41 --- /dev/null +++ b/nids/360/SceAVConfig.yml @@ -0,0 +1,9 @@ +modules: + SceAVConfig: + nid: 0x222DDEB1 + libraries: + SceAVConfig: + nid: 0x79E0F03F + functions: + sceAVConfigGetDisplayMaxBrightness: 0x6ABA67F4 + sceAVConfigSetDisplayBrightness: 0xE0C1B743 -- cgit v1.2.3