mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
This should clean up all HLE errorcode in the codebase. I didn't removed Rust::Result as this should be a cleanup for another iteration.
29 lines
No EOL
736 B
C++
29 lines
No EOL
736 B
C++
#pragma once
|
|
#include "helpers.hpp"
|
|
#include "kernel_types.hpp"
|
|
#include "logger.hpp"
|
|
#include "memory.hpp"
|
|
#include "result/result.hpp"
|
|
|
|
// You know the drill
|
|
class Kernel;
|
|
|
|
class NFCService {
|
|
Handle handle = KernelHandles::NFC;
|
|
Memory& mem;
|
|
Kernel& kernel;
|
|
MAKE_LOG_FUNCTION(log, nfcLogger)
|
|
|
|
// Kernel events signaled when an NFC tag goes in and out of range respectively
|
|
std::optional<Handle> tagInRangeEvent, tagOutOfRangeEvent;
|
|
|
|
// Service commands
|
|
void initialize(u32 messagePointer);
|
|
void getTagInRangeEvent(u32 messagePointer);
|
|
void getTagOutOfRangeEvent(u32 messagePointer);
|
|
|
|
public:
|
|
NFCService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}
|
|
void reset();
|
|
void handleSyncRequest(u32 messagePointer);
|
|
}; |