Difference between revisions of "PTM:GetAdapterState"
Jump to navigation
Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00050000] |} =Response= {| class="wikitable" border="1" |- ! Index Word ! Des...") |
|||
Line 22: | Line 22: | ||
|- | |- | ||
| 2 | | 2 | ||
− | | u8 output: 0 = not | + | | u8 output: 0 = not connected, 1 = connected. |
|} | |} | ||
=Description= | =Description= | ||
− | + | Similar to [[PTM:GetBatteryChargeState]], but when the battery is already fully charged with the adapter still connected, this function returns 1, while PTM:GetBatteryChargeState returns 0. |
Latest revision as of 12:25, 21 March 2017
Request[edit]
Index Word | Description |
---|---|
0 | Header code [0x00050000] |
Response[edit]
Index Word | Description |
---|---|
0 | Header code |
1 | Result code |
2 | u8 output: 0 = not connected, 1 = connected. |
Description[edit]
Similar to PTM:GetBatteryChargeState, but when the battery is already fully charged with the adapter still connected, this function returns 1, while PTM:GetBatteryChargeState returns 0.