summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/user/avconfig.h34
1 files changed, 34 insertions, 0 deletions
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 <psp2/types.h>
+
+#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
+