43 lines
1.0 KiB
C
43 lines
1.0 KiB
C
/**
|
|
* @file ptmu.h
|
|
* @brief PTMU service.
|
|
*/
|
|
#pragma once
|
|
|
|
/// Initializes PTMU.
|
|
Result ptmuInit(void);
|
|
|
|
/// Exits PTMU.
|
|
void ptmuExit(void);
|
|
|
|
/**
|
|
* @brief Gets the system's current shell state.
|
|
* @param out Pointer to write the current shell state to. (0 = closed, 1 = open)
|
|
*/
|
|
Result PTMU_GetShellState(u8 *out);
|
|
|
|
/**
|
|
* @brief Gets the system's current battery level.
|
|
* @param out Pointer to write the current battery level to. (0-5)
|
|
*/
|
|
Result PTMU_GetBatteryLevel(u8 *out);
|
|
|
|
/**
|
|
* @brief Gets the system's current battery charge state.
|
|
* @param out Pointer to write the current battery charge state to. (0 = not charging, 1 = charging)
|
|
*/
|
|
Result PTMU_GetBatteryChargeState(u8 *out);
|
|
|
|
/**
|
|
* @brief Gets the system's current pedometer state.
|
|
* @param out Pointer to write the current pedometer state to. (0 = not counting, 1 = counting)
|
|
*/
|
|
Result PTMU_GetPedometerState(u8 *out);
|
|
|
|
/**
|
|
* @brief Gets the pedometer's total step count.
|
|
* @param steps Pointer to write the total step count to.
|
|
*/
|
|
Result PTMU_GetTotalStepCount(u32 *steps);
|
|
|