ptm_u.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/hle/service/ptm/ptm.h"
  5. #include "core/hle/service/ptm/ptm_u.h"
  6. namespace Service {
  7. namespace PTM {
  8. const Interface::FunctionInfo FunctionTable[] = {
  9. {0x00010002, nullptr, "RegisterAlarmClient"},
  10. {0x00020080, nullptr, "SetRtcAlarm"},
  11. {0x00030000, nullptr, "GetRtcAlarm"},
  12. {0x00040000, nullptr, "CancelRtcAlarm"},
  13. {0x00050000, GetAdapterState, "GetAdapterState"},
  14. {0x00060000, GetShellState, "GetShellState"},
  15. {0x00070000, GetBatteryLevel, "GetBatteryLevel"},
  16. {0x00080000, GetBatteryChargeState, "GetBatteryChargeState"},
  17. {0x00090000, GetPedometerState, "GetPedometerState"},
  18. {0x000A0042, nullptr, "GetStepHistoryEntry"},
  19. {0x000B00C2, nullptr, "GetStepHistory"},
  20. {0x000C0000, GetTotalStepCount, "GetTotalStepCount"},
  21. {0x000D0040, nullptr, "SetPedometerRecordingMode"},
  22. {0x000E0000, nullptr, "GetPedometerRecordingMode"},
  23. {0x000F0084, nullptr, "GetStepHistoryAll"},
  24. };
  25. PTM_U::PTM_U() {
  26. Register(FunctionTable);
  27. }
  28. } // namespace PTM
  29. } // namespace Service