NFC library using PN532 to read/write NDEF Messages to NFC tags
Dependents: Seeed_NFC_Shield_write Nucleo_test_nfc
Fork of PN532 by
MifareUltralight.h
00001 #ifndef MifareUltralight_h 00002 #define MifareUltralight_h 00003 00004 #include <PN532.h > 00005 #include <NfcTag.h> 00006 #include <Ndef.h> 00007 00008 class MifareUltralight 00009 { 00010 public: 00011 MifareUltralight(PN532& nfcShield); 00012 ~MifareUltralight(); 00013 NfcTag read(uint8_t *uid, unsigned int uidLength); 00014 private: 00015 PN532* nfc; 00016 unsigned int tagCapacity; 00017 unsigned int messageLength; 00018 unsigned int bufferSize; 00019 unsigned int ndefStartIndex; 00020 bool isUnformatted(); 00021 void readCapabilityContainer(); 00022 void findNdefMessage(); 00023 void calculateBufferSize(); 00024 }; 00025 00026 #endif
Generated on Tue Jul 12 2022 21:59:39 by 1.7.2