libctru
v2.4.1
|
PTMU service. More...
Go to the source code of this file.
Functions | |
Result | ptmuInit (void) |
Initializes PTMU. | |
void | ptmuExit (void) |
Exits PTMU. | |
Handle * | ptmuGetSessionHandle (void) |
Gets a pointer to the current ptm:u session handle. More... | |
Result | PTMU_GetShellState (u8 *out) |
Gets the system's current shell state. More... | |
Result | PTMU_GetBatteryLevel (u8 *out) |
Gets the system's current battery level. More... | |
Result | PTMU_GetBatteryChargeState (u8 *out) |
Gets the system's current battery charge state. More... | |
Result | PTMU_GetPedometerState (u8 *out) |
Gets the system's current pedometer state. More... | |
Result | PTMU_GetTotalStepCount (u32 *steps) |
Gets the pedometer's total step count. More... | |
Result | PTMU_GetAdapterState (bool *out) |
Gets whether the adapter is plugged in or not. More... | |
PTMU service.
Result PTMU_GetAdapterState | ( | bool * | out | ) |
Gets whether the adapter is plugged in or not.
out | Pointer to write the adapter state to. |
Gets the system's current battery charge state.
out | Pointer to write the current battery charge state to. (0 = not charging, 1 = charging) |
Gets the system's current battery level.
out | Pointer to write the current battery level to. (0-5) |
Gets the system's current pedometer state.
out | Pointer to write the current pedometer state to. (0 = not counting, 1 = counting) |
Gets the system's current shell state.
out | Pointer to write the current shell state to. (0 = closed, 1 = open) |
Gets the pedometer's total step count.
steps | Pointer to write the total step count to. |
Handle* ptmuGetSessionHandle | ( | void | ) |
Gets a pointer to the current ptm:u session handle.