2014-11-12 21:13:08 +00:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 05:38:14 +00:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-11-12 21:13:08 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#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() {
|
2015-01-30 18:56:49 +00:00
|
|
|
Register(FunctionTable);
|
2014-11-12 21:13:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace
|