2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-07-26 08:50:32 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
|
2020-11-26 15:19:08 -05:00
|
|
|
namespace Core {
|
|
|
|
|
class System;
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-26 08:50:32 -04:00
|
|
|
namespace Service::HID {
|
|
|
|
|
|
|
|
|
|
class XCD_SYS final : public ServiceFramework<XCD_SYS> {
|
|
|
|
|
public:
|
2020-11-26 15:19:08 -05:00
|
|
|
explicit XCD_SYS(Core::System& system_);
|
2018-09-10 21:20:52 -04:00
|
|
|
~XCD_SYS() override;
|
2026-09-26 08:11:32 +00:00
|
|
|
|
|
|
|
|
FunctionInfoBase const* FindRequest(u32 key) override {
|
|
|
|
|
return HandlerTableGenerateWithFind(key, functions);
|
|
|
|
|
}
|
|
|
|
|
static constexpr auto functions = CreateStaticMap(
|
|
|
|
|
FunctionInfo{0, nullptr, "GetDataFormat"},
|
|
|
|
|
FunctionInfo{1, nullptr, "SetDataFormat"},
|
|
|
|
|
FunctionInfo{2, nullptr, "GetMcuState"},
|
|
|
|
|
FunctionInfo{3, nullptr, "SetMcuState"},
|
|
|
|
|
FunctionInfo{4, nullptr, "GetMcuVersionForNfc"},
|
|
|
|
|
FunctionInfo{5, nullptr, "CheckNfcDevicePower"},
|
|
|
|
|
FunctionInfo{10, nullptr, "SetNfcEvent"},
|
|
|
|
|
FunctionInfo{11, nullptr, "GetNfcInfo"},
|
|
|
|
|
FunctionInfo{12, nullptr, "StartNfcDiscovery"},
|
|
|
|
|
FunctionInfo{13, nullptr, "StopNfcDiscovery"},
|
|
|
|
|
FunctionInfo{14, nullptr, "StartNtagRead"},
|
|
|
|
|
FunctionInfo{15, nullptr, "StartNtagWrite"},
|
|
|
|
|
FunctionInfo{16, nullptr, "SendNfcRawData"},
|
|
|
|
|
FunctionInfo{17, nullptr, "RegisterMifareKey"},
|
|
|
|
|
FunctionInfo{18, nullptr, "ClearMifareKey"},
|
|
|
|
|
FunctionInfo{19, nullptr, "StartMifareRead"},
|
|
|
|
|
FunctionInfo{20, nullptr, "StartMifareWrite"},
|
|
|
|
|
FunctionInfo{101, nullptr, "GetAwakeTriggerReasonForLeftRail"},
|
|
|
|
|
FunctionInfo{102, nullptr, "GetAwakeTriggerReasonForRightRail"},
|
|
|
|
|
FunctionInfo{103, nullptr, "GetAwakeTriggerBatteryLevelTransitionForLeftRail"},
|
|
|
|
|
FunctionInfo{104, nullptr, "GetAwakeTriggerBatteryLevelTransitionForRightRail"}
|
|
|
|
|
);
|
2018-07-26 08:50:32 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Service::HID
|