From 69a7c61ee262fa7e05218a77cb032d026f31d79e Mon Sep 17 00:00:00 2001 From: XorTroll <33005497+XorTroll@users.noreply.github.com> Date: Thu, 6 Sep 2018 23:53:00 +0200 Subject: [PATCH] Add files via upload --- nx/include/switch/services/psm.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 nx/include/switch/services/psm.h diff --git a/nx/include/switch/services/psm.h b/nx/include/switch/services/psm.h new file mode 100644 index 00000000..d233ee01 --- /dev/null +++ b/nx/include/switch/services/psm.h @@ -0,0 +1,13 @@ +/** + * @file psm.h + * @brief PSM service IPC wrapper. + * @author XorTroll + * @copyright libnx Authors + */ +#pragma once +#include "../types.h" + +Result psmInitialize(void); +void psmExit(void); + +Result psmGetBatteryChargePercentage(u32 *out);