mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
Add nwm::UDS
This commit is contained in:
parent
f37b47f2d0
commit
db50054128
7 changed files with 83 additions and 4 deletions
28
include/services/nwm_uds.hpp
Normal file
28
include/services/nwm_uds.hpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include <optional>
|
||||
|
||||
#include "helpers.hpp"
|
||||
#include "kernel_types.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "memory.hpp"
|
||||
|
||||
// More circular dependencies
|
||||
class Kernel;
|
||||
|
||||
class NwmUdsService {
|
||||
Handle handle = KernelHandles::NWM_UDS;
|
||||
Memory& mem;
|
||||
Kernel& kernel;
|
||||
MAKE_LOG_FUNCTION(log, nwmUdsLogger)
|
||||
|
||||
bool initialized = false;
|
||||
std::optional<Handle> eventHandle = std::nullopt;
|
||||
|
||||
// Service commands
|
||||
void initializeWithVersion(u32 messagePointer);
|
||||
|
||||
public:
|
||||
NwmUdsService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue