Panda3DS/include/services/y2r.hpp
2023-03-13 00:31:09 +02:00

23 lines
No EOL
516 B
C++

#pragma once
#include "helpers.hpp"
#include "kernel_types.hpp"
#include "logger.hpp"
#include "memory.hpp"
class Y2RService {
Handle handle = KernelHandles::Y2R;
Memory& mem;
MAKE_LOG_FUNCTION(log, y2rLogger)
bool transferEndInterruptEnabled;
// Service commands
void driverInitialize(u32 messagePointer);
void pingProcess(u32 messagePointer);
void setTransferEndInterrupt(u32 messagePointer);
public:
Y2RService(Memory& mem) : mem(mem) {}
void reset();
void handleSyncRequest(u32 messagePointer);
};