Result PTMU_GetAdapterState(bool *out)
Gets whether the adapter is plugged in or not.
Result PTMU_GetBatteryChargeState(u8 *out)
Gets the system's current battery charge state.
void ptmuExit(void)
Exits PTMU.
Result ptmuInit(void)
Initializes PTMU.
Result PTMU_GetTotalStepCount(u32 *steps)
Gets the pedometer's total step count.
Result PTMU_GetBatteryLevel(u8 *out)
Gets the system's current battery level.
Handle * ptmuGetSessionHandle(void)
Gets a pointer to the current ptm:u session handle.
Result PTMU_GetPedometerState(u8 *out)
Gets the system's current pedometer state.
Result PTMU_GetShellState(u8 *out)
Gets the system's current shell state.
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
u32 Handle
Resource handle.
Definition: types.h:41
s32 Result
Function result.
Definition: types.h:42
uint32_t u32
32-bit unsigned integer
Definition: types.h:23