summaryrefslogtreecommitdiff
path: root/include/rfid
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-10-22 17:55:57 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-10-22 17:55:57 +0000
commit09a3dd030ddac3875b865be72e91d8326367dd4c (patch)
treed9793c67e635f4fc4475c3dda03bf72c6b2310d2 /include/rfid
parentcd00f34b3bd74848b4a08e48ac39ec63bdb29409 (diff)
mifare ultraligh have pages 0-15, not only 0-7
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1552 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'include/rfid')
-rw-r--r--include/rfid/rfid_protocol_mifare_ul.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/rfid/rfid_protocol_mifare_ul.h b/include/rfid/rfid_protocol_mifare_ul.h
index 34d246a..6cdec22 100644
--- a/include/rfid/rfid_protocol_mifare_ul.h
+++ b/include/rfid/rfid_protocol_mifare_ul.h
@@ -1,6 +1,15 @@
#ifndef _RFID_PROTOCOL_MFUL_H
#define _RFID_PROTOCOL_MFUL_H
+
+#define MIFARE_UL_CMD_WRITE 0xA2
+#define MIFARE_UL_CMD_READ 0x30
+
+#define MIFARE_UL_RESP_ACK 0x0a
+#define MIFARE_UL_RESP_NAK 0x00
+
+#define MIFARE_UL_PAGE_MAX 15
+
struct rfid_protocol rfid_protocol_mful;
#endif
personal git repositories of Harald Welte. Your mileage may vary