From 461892122b72cd4118bf7ad09439fd2986f9fb2e Mon Sep 17 00:00:00 2001 From: XorTroll <33005497+XorTroll@users.noreply.github.com> Date: Thu, 6 Sep 2018 18:55:39 +0200 Subject: [PATCH] Create psm.h --- 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);