LEER TAG
Dependents: NFC_HTM_READ EMULAR_TAGS Escribir_tag NFC_HTM_READ-WRITE
MifareUltralight.h
- Committer:
- mauroar211
- Date:
- 2015-04-24
- Revision:
- 1:a549ef8b142a
- Parent:
- 0:b805b487fbef
File content as of revision 1:a549ef8b142a:
#ifndef MifareUltralight_h #define MifareUltralight_h #include <PN532.h> #include <NfcTag.h> #include <Ndef.h> class MifareUltralight { public: MifareUltralight(PN532& nfcShield); ~MifareUltralight(); NfcTag read(uint8_t *uid, unsigned int uidLength); private: PN532* nfc; unsigned int tagCapacity; unsigned int messageLength; unsigned int bufferSize; unsigned int ndefStartIndex; bool isUnformatted(); void readCapabilityContainer(); void findNdefMessage(); void calculateBufferSize(); }; #endif