aboutsummaryrefslogtreecommitdiff
path: root/src/SPI.h
diff options
context:
space:
mode:
authorRayyan Ansari <rayyan@ansari.sh>2022-02-18 15:32:46 +0000
committerArisotura <thetotalworm@gmail.com>2022-03-07 21:08:54 +0100
commit2569c67a13a6ce855d27821cc6863ebea82c429d (patch)
tree6eb326bfadb2dc28999bb722731c006c4dc327f9 /src/SPI.h
parentc3adf6f606c694221342111a850e7b76ac77a56d (diff)
Add support for changing the DS and DSi battery level
The DS battery level is configured via the SPI Power Management Device, and the DSi's is configured via the I2C BPTWL. Add support for changing these registers and add the "Power Management" dialog in the UI.
Diffstat (limited to 'src/SPI.h')
-rw-r--r--src/SPI.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SPI.h b/src/SPI.h
index 10a8a0d..8ac3948 100644
--- a/src/SPI.h
+++ b/src/SPI.h
@@ -37,6 +37,14 @@ u8* GetWifiMAC();
}
+namespace SPI_Powerman
+{
+
+bool GetBatteryLevelOkay();
+void SetBatteryLevelOkay(bool okay);
+
+}
+
namespace SPI_TSC
{