mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-07 04:34:48 +12:00
Implement NFC::CommunicationGetStatus
This commit is contained in:
parent
7bbf37bb63
commit
59649b27a0
2 changed files with 27 additions and 1 deletions
include/services
|
@ -14,10 +14,19 @@ class NFCService {
|
|||
Kernel& kernel;
|
||||
MAKE_LOG_FUNCTION(log, nfcLogger)
|
||||
|
||||
enum class Old3DSAdapterStatus : s32 {
|
||||
AttemptingToInitialize = 1,
|
||||
InitializationComplete = 2,
|
||||
// Other values are errors according to 3DBrew, set the not initialized error to -1 until we find out what it should be
|
||||
NotInitialized = -1,
|
||||
};
|
||||
|
||||
// Kernel events signaled when an NFC tag goes in and out of range respectively
|
||||
std::optional<Handle> tagInRangeEvent, tagOutOfRangeEvent;
|
||||
Old3DSAdapterStatus adapterStatus;
|
||||
|
||||
// Service commands
|
||||
void communicationGetStatus(u32 messagePointer);
|
||||
void initialize(u32 messagePointer);
|
||||
void getTagInRangeEvent(u32 messagePointer);
|
||||
void getTagOutOfRangeEvent(u32 messagePointer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue