xcd.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/hle/service/hid/xcd.h"
  5. namespace Service::HID {
  6. XCD_SYS::XCD_SYS() : ServiceFramework{"xcd:sys"} {
  7. // clang-format off
  8. static const FunctionInfo functions[] = {
  9. {0, nullptr, "GetDataFormat"},
  10. {1, nullptr, "SetDataFormat"},
  11. {2, nullptr, "GetMcuState"},
  12. {3, nullptr, "SetMcuState"},
  13. {4, nullptr, "GetMcuVersionForNfc"},
  14. {5, nullptr, "CheckNfcDevicePower"},
  15. {10, nullptr, "SetNfcEvent"},
  16. {11, nullptr, "GetNfcInfo"},
  17. {12, nullptr, "StartNfcDiscovery"},
  18. {13, nullptr, "StopNfcDiscovery"},
  19. {14, nullptr, "StartNtagRead"},
  20. {15, nullptr, "StartNtagWrite"},
  21. {16, nullptr, "SendNfcRawData"},
  22. {17, nullptr, "RegisterMifareKey"},
  23. {18, nullptr, "ClearMifareKey"},
  24. {19, nullptr, "StartMifareRead"},
  25. {20, nullptr, "StartMifareWrite"},
  26. {101, nullptr, "GetAwakeTriggerReasonForLeftRail"},
  27. {102, nullptr, "GetAwakeTriggerReasonForRightRail"},
  28. };
  29. // clang-format on
  30. RegisterHandlers(functions);
  31. }
  32. } // namespace Service::HID