From c1c30a5c7318c947498dc34aa2fb6ed4da940bb8 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 17 Jun 2018 19:31:46 +0200 Subject: [PATCH] Add energy saving header. --- include/coreinit/energysaver.h | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 include/coreinit/energysaver.h diff --git a/include/coreinit/energysaver.h b/include/coreinit/energysaver.h new file mode 100644 index 0000000..2986c92 --- /dev/null +++ b/include/coreinit/energysaver.h @@ -0,0 +1,39 @@ +#pragma once +#include + +/** + * \defgroup coreinit_energysaver Energy saver + * \ingroup coreinit + * @{ + */ + +#ifdef __cplusplus +extern "C" { +#endif + +int32_t +IMEnableDim(void); + +int32_t +IMDisableDim(void); + +int32_t +IMIsDimEnabled(int32_t * result); + +int32_t +IMEnableAPD(void); + +int32_t +IMDisableAPD(void); + +int32_t +IMIsAPDEnabled(int32_t * result); + +int32_t +IMIsAPDEnabledBySysSettings(int32_t * result); + +#ifdef __cplusplus +} +#endif + +/** @} */