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.
Fork of PN532 by
Diff: NfcAdapter.h
- 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
