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: PN532.h
- Revision:
- 5:51f820fbd18a
- Parent:
- 3:4189a10038e6
- Child:
- 8:7ffdaea03ff9
diff -r 0774b8298eb8 -r 51f820fbd18a PN532.h
--- a/PN532.h Thu Nov 21 04:41:47 2013 +0000
+++ b/PN532.h Tue Oct 07 15:09:46 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)
@@ -139,7 +139,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
@@ -153,7 +153,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);
