Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: PN532_write_tag PN532_read_tag PN532_P2P P2P_temp
MifareClassic.h
00001 #ifndef MifareClassic_h 00002 #define MifareClassic_h 00003 00004 #include <PN532.h > 00005 #include <Ndef.h> 00006 #include <NfcTag.h> 00007 00008 class MifareClassic 00009 { 00010 public: 00011 MifareClassic(PN532& nfcShield); 00012 ~MifareClassic(); 00013 NfcTag read(uint8_t *uid, unsigned int uidLength); 00014 bool write(NdefMessage& ndefMessage, uint8_t *uid, unsigned int uidLength); 00015 private: 00016 PN532* _nfcShield; 00017 int getBufferSize(int messageLength); 00018 int getNdefStartIndex(uint8_t *data); 00019 bool decodeTlv(uint8_t *data, int &messageLength, int &messageStartIndex); 00020 }; 00021 00022 #endif
Generated on Sat Jul 23 2022 01:57:56 by
