diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-06 04:17:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 04:17:32 +0100 |
commit | 04779b3d2a5e25a3808d754d1ea1767f0b8c0328 (patch) | |
tree | fd003772877453e89a19d6509bc675fff3a35f54 /src/core/hle/service/nfc/nfc_device.h | |
parent | Merge pull request #9360 from Kelebek1/R-E-S-P-E-C-T (diff) | |
parent | input_common: Allow mifare files (diff) | |
download | yuzu-04779b3d2a5e25a3808d754d1ea1767f0b8c0328.tar yuzu-04779b3d2a5e25a3808d754d1ea1767f0b8c0328.tar.gz yuzu-04779b3d2a5e25a3808d754d1ea1767f0b8c0328.tar.bz2 yuzu-04779b3d2a5e25a3808d754d1ea1767f0b8c0328.tar.lz yuzu-04779b3d2a5e25a3808d754d1ea1767f0b8c0328.tar.xz yuzu-04779b3d2a5e25a3808d754d1ea1767f0b8c0328.tar.zst yuzu-04779b3d2a5e25a3808d754d1ea1767f0b8c0328.zip |
Diffstat (limited to 'src/core/hle/service/nfc/nfc_device.h')
-rw-r--r-- | src/core/hle/service/nfc/nfc_device.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/hle/service/nfc/nfc_device.h b/src/core/hle/service/nfc/nfc_device.h index fa1348f1a..a6e114d36 100644 --- a/src/core/hle/service/nfc/nfc_device.h +++ b/src/core/hle/service/nfc/nfc_device.h @@ -34,10 +34,16 @@ public: void Initialize(); void Finalize(); - Result StartDetection(s32 protocol_); + Result StartDetection(NFP::TagProtocol allowed_protocol); Result StopDetection(); + Result Flush(); - Result GetTagInfo(NFP::TagInfo& tag_info) const; + Result GetTagInfo(NFP::TagInfo& tag_info, bool is_mifare) const; + + Result MifareRead(const NFP::MifareReadBlockParameter& parameter, + NFP::MifareReadBlockData& read_block_data); + + Result MifareWrite(const NFP::MifareWriteBlockParameter& parameter); u64 GetHandle() const; NFP::DeviceState GetCurrentState() const; @@ -61,10 +67,11 @@ private: Kernel::KEvent* deactivate_event = nullptr; Kernel::KEvent* availability_change_event = nullptr; - s32 protocol{}; + NFP::TagProtocol allowed_protocols{}; NFP::DeviceState device_state{NFP::DeviceState::Unavailable}; NFP::EncryptedNTAG215File encrypted_tag_data{}; + std::vector<u8> tag_data{}; }; } // namespace Service::NFC |