Implement NFC::CommunicationGetStatus

This commit is contained in:
wheremyfoodat 2023-08-18 17:13:15 +03:00
parent 7bbf37bb63
commit 59649b27a0
2 changed files with 27 additions and 1 deletions
include/services

View file

@ -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);