PN532 NFC library for Seeed Studio's NFC Shield
Fork of PN532 by
Diff: PN532.h
- Revision:
- 8:7ffdaea03ff9
- Parent:
- 6:418ee8924317
- Parent:
- 5:51f820fbd18a
diff -r 26c1b3b6c192 -r 7ffdaea03ff9 PN532.h --- a/PN532.h Tue Mar 25 16:48:10 2014 +0000 +++ b/PN532.h Wed Oct 08 01:52:33 2014 +0000 @@ -61,7 +61,7 @@ #define MIFARE_CMD_DECREMENT (0xC0) #define MIFARE_CMD_INCREMENT (0xC1) #define MIFARE_CMD_STORE (0xC2) - +#define MIFARE_UL_CMD_WRITE_PAGE (0xA2) // Prefixes for NDEF Records (to identify record type) #define NDEF_URIPREFIX_NONE (0x00) #define NDEF_URIPREFIX_HTTP_WWWDOT (0x01) @@ -142,7 +142,7 @@ // ISO14443A functions bool inListPassiveTarget(); - bool readPassiveTargetID(uint8_t cardbaudrate, uint8_t *uid, uint8_t *uidLength, uint16_t timeout = 1000); + bool readPassiveTargetID(uint8_t cardbaudrate, uint8_t *uid, uint8_t *uidLength, uint16_t *atqa, uint8_t *sak, uint16_t timeout = 1000); bool inDataExchange(uint8_t *send, uint8_t sendLength, uint8_t *response, uint8_t *responseLength); // Mifare Classic functions @@ -156,7 +156,7 @@ // Mifare Ultralight functions uint8_t mifareultralight_ReadPage (uint8_t page, uint8_t *buffer); - + uint8_t mifareultralight_WritePage (uint8_t page, uint8_t *buffer); // Help functions to display formatted text static void PrintHex(const uint8_t *data, const uint32_t numBytes); static void PrintHexChar(const uint8_t *pbtData, const uint32_t numBytes);