PN532 NFC shield of Adafruit based on PN532 of Seeed.
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 bool write(NdefMessage& ndefMessage, uint8_t *uid, unsigned int uidLength); 00015 private: 00016 PN532* nfc; 00017 unsigned int tagCapacity; 00018 unsigned int messageLength; 00019 unsigned int bufferSize; 00020 unsigned int ndefStartIndex; 00021 bool isUnformatted(); 00022 void readCapabilityContainer(); 00023 void findNdefMessage(); 00024 void calculateBufferSize(); 00025 }; 00026 00027 #endif
Generated on Thu Jul 14 2022 10:42:53 by 1.7.2