From 2569c67a13a6ce855d27821cc6863ebea82c429d Mon Sep 17 00:00:00 2001 From: Rayyan Ansari Date: Fri, 18 Feb 2022 15:32:46 +0000 Subject: 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. --- src/SPI.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/SPI.h') 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 { -- cgit v1.2.3