PN532 customized

Fork of PN532 by Components

Revision:
7:a26fa6ef10eb
Parent:
3:4189a10038e6
--- a/NfcAdapter.h	Tue Mar 25 16:48:10 2014 +0000
+++ b/NfcAdapter.h	Tue Feb 09 16:16:11 2016 +0000
@@ -10,7 +10,14 @@
 #include <MifareClassic.h>
 #include <MifareUltralight.h>
 
-#define TAG_TYPE_MIFARE_CLASSIC (0)
+#define TAG_TYPE_MIFARE_MINI (0)
+#define TAG_TYPE_MIFARE_1K (1)
+#define TAG_TYPE_MIFARE_4K (2)
+#define TAG_TYPE_MIFARE_UL (3)
+#define TAG_TYPE_MIFARE_PLUS_2K (4)
+#define TAG_TYPE_MIFARE_PLUS_4K (5)
+#define TAG_TYPE_14443 (6)
+
 #define TAG_TYPE_1 (1)
 #define TAG_TYPE_2 (2)
 #define TAG_TYPE_3 (3)
@@ -37,7 +44,9 @@
         PN532* shield;
         uint8_t uid[7];    // Buffer to store the returned UID
         unsigned int uidLength; // Length of the UID (4 or 7 uint8_ts depending on ISO14443A card type)
+        uint8_t sak;
         unsigned int guessTagType();
+        unsigned int getTagType();
 };
 
 #endif