diff options
Diffstat (limited to 'src/DSi_I2C.h')
-rw-r--r-- | src/DSi_I2C.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/DSi_I2C.h b/src/DSi_I2C.h index b631303..7350fb5 100644 --- a/src/DSi_I2C.h +++ b/src/DSi_I2C.h @@ -19,11 +19,28 @@ #ifndef DSI_I2C_H #define DSI_I2C_H +#include "types.h" + namespace DSi_BPTWL { u8 GetBootFlag(); +bool GetBatteryCharging(); +void SetBatteryCharging(bool charging); + +enum +{ + batteryLevel_Critical = 0x0, + batteryLevel_AlmostEmpty = 0x1, + batteryLevel_Low = 0x3, + batteryLevel_Half = 0x7, + batteryLevel_ThreeQuarters = 0xB, + batteryLevel_Full = 0xF +}; + +u8 GetBatteryLevel(); +void SetBatteryLevel(u8 batteryLevel); } namespace DSi_I2C |