Henry Lovett / Mbed 2 deprecated MifareRFIDReaderWriter

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
seblovett
Date:
Sat Jun 29 18:57:07 2013 +0000
Parent:
3:4af68a2b8622
Commit message:
v1.01 minor changes, mainly added comments

Changed in this revision

RWDMifare/RWDMifare.cpp Show annotated file Show diff for this revision Revisions of this file
RWDMifare/RWDMifare.h Show annotated file Show diff for this revision Revisions of this file
--- a/RWDMifare/RWDMifare.cpp	Sat Jun 29 18:46:29 2013 +0000
+++ b/RWDMifare/RWDMifare.cpp	Sat Jun 29 18:57:07 2013 +0000
@@ -191,7 +191,7 @@
     else //only applicable for 4k cards 
     {
         if ((Addr & 0xF) == 0xF) //for sectors 32 - 39, trailer occurs in block 15. 
-            reutrn MIFARE_TRAIL;
+            return MIFARE_TRAIL;
     }
     
     //get here, writing to a user field.
--- a/RWDMifare/RWDMifare.h	Sat Jun 29 18:46:29 2013 +0000
+++ b/RWDMifare/RWDMifare.h	Sat Jun 29 18:57:07 2013 +0000
@@ -25,6 +25,21 @@
 The class configures the reader for Mifare operation and can poll for UIDs.
 */
 
+/* Code originally as above. Only contained set up and ability to read UIDs
+ * Code was expanded massively to implement read and writing of card blocks by seblovett.
+ * 
+ *  Responsibility for bricking any cards if section trailers are written to are entirely 
+ *  on the user. This code has been written to avoid any chance of bricking the device, and 
+ *  any attempt to write to section trailers requires effort on the user.
+ *  
+ *  Known Bugs and Limitations:
+ *   - Primitive UI
+ *
+ *
+ *  To Do: 
+ *   - Turn into USB Device to work with Desktop software, giving a better UI to read and write cards.
+ *   - Inherit an InterruptIn to trigger a UID read on card detect
+ */
 
 
 #ifndef RWD_MIFARE_H