summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ir_u.cpp
diff options
context:
space:
mode:
authorpurpasmart96 <purpasmart96@users.noreply.github.com>2014-11-12 22:13:08 +0100
committerpurpasmart96 <kanzoconfigz@hotmail.com>2014-11-21 02:09:57 +0100
commit9821bfcb8e6be2e220ae757d65d47cd478e8bfc8 (patch)
tree1d1d0a92efa278d7254c99245c10aa3b78ed700d /src/core/hle/service/ir_u.cpp
parentMerge pull request #211 from linkmauve/master (diff)
downloadyuzu-9821bfcb8e6be2e220ae757d65d47cd478e8bfc8.tar
yuzu-9821bfcb8e6be2e220ae757d65d47cd478e8bfc8.tar.gz
yuzu-9821bfcb8e6be2e220ae757d65d47cd478e8bfc8.tar.bz2
yuzu-9821bfcb8e6be2e220ae757d65d47cd478e8bfc8.tar.lz
yuzu-9821bfcb8e6be2e220ae757d65d47cd478e8bfc8.tar.xz
yuzu-9821bfcb8e6be2e220ae757d65d47cd478e8bfc8.tar.zst
yuzu-9821bfcb8e6be2e220ae757d65d47cd478e8bfc8.zip
Diffstat (limited to 'src/core/hle/service/ir_u.cpp')
-rw-r--r--src/core/hle/service/ir_u.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/core/hle/service/ir_u.cpp b/src/core/hle/service/ir_u.cpp
new file mode 100644
index 000000000..aa9db6f6d
--- /dev/null
+++ b/src/core/hle/service/ir_u.cpp
@@ -0,0 +1,45 @@
+// Copyright 2014 Citra Emulator Project
+// Licensed under GPLv2
+// Refer to the license.txt file included.
+
+#include "common/log.h"
+#include "core/hle/hle.h"
+#include "core/hle/service/ir_u.h"
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+// Namespace IR_U
+
+namespace IR_U {
+
+const Interface::FunctionInfo FunctionTable[] = {
+ {0x00010000, nullptr, "Initialize"},
+ {0x00020000, nullptr, "Shutdown"},
+ {0x00030042, nullptr, "StartSendTransfer"},
+ {0x00040000, nullptr, "WaitSendTransfer"},
+ {0x000500C2, nullptr, "StartRecvTransfer"},
+ {0x00060000, nullptr, "WaitRecvTransfer"},
+ {0x00070080, nullptr, "GetRecvTransferCount"},
+ {0x00080000, nullptr, "GetSendState"},
+ {0x00090040, nullptr, "SetBitRate"},
+ {0x000A0000, nullptr, "GetBitRate"},
+ {0x000B0040, nullptr, "SetIRLEDState"},
+ {0x000C0000, nullptr, "GetIRLEDRecvState"},
+ {0x000D0000, nullptr, "GetSendFinishedEvent"},
+ {0x000E0000, nullptr, "GetRecvFinishedEvent"},
+ {0x000F0000, nullptr, "GetTransferState"},
+ {0x00100000, nullptr, "GetErrorStatus"},
+ {0x00110040, nullptr, "SetSleepModeActive"},
+ {0x00120040, nullptr, "SetSleepModeState"},
+};
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+// Interface class
+
+Interface::Interface() {
+ Register(FunctionTable, ARRAY_SIZE(FunctionTable));
+}
+
+Interface::~Interface() {
+}
+
+} // namespace