Line 2:
Line 2:
==Functions==
==Functions==
+
===Auto Power-Down===
+
The Auto Power-Down feature in the WiiU saves the battery of the console, shutting down in one hour when there is no user activity.
+
{| class="wikitable"
+
!Name
+
!Prototype
+
!Description
+
|-
+
|IMEnableAPD
+
|<code>void IMEnableAPD(void)</code>
+
|Enables the Auto Power-Down system.
+
|-
+
|IMDisableAPD
+
|<code>void IMDisableAPD(void)</code>
+
|Disables the Auto Power-Down system.
+
|-
+
|IMIsAPDEnabled
+
|<code>void IMIsAPDEnabled(uint32_t *isEnabled)</code>
+
|Writes the current Auto Power-Down setting to isEnabled: 0x0 = off, 0x1 = on.
+
|-
+
|IMIsAPDEnabledBySysSettings
+
|<code>void IMIsAPDEnabledBySysSettings(uint32_t *isEnabled)</code>
+
|Writes the current Auto Power-Down setting from system settings to isEnabled: 0x0 = off, 0x1 = on.
+
|
+
|-
+
|IMGetAPDPeriod
+
|<code>void IMGetAPDPeriod(uint32_t *apd_secs)</code>
+
|Returns the amount of seconds it takes of user inactivity to turn off the WiiU, if the Auto Power-Down setting is True. apd_secs is a pointer to the variable that stores the amount of seconds.
+
|-
+
|IMGetTimeBeforeAPD
+
|<code>void IMGetTimeBeforeAPD(uint32_t *apd_secs)</code>
+
|Returns the amount of seconds that are left until the WiiU powers down, if the Auto Power-Down setting is True. apd_secs is a pointer to the variable that stores the amount of seconds.
+
|}
===Cache===
===Cache===
{| class="wikitable"
{| class="wikitable"