From 2feb65ed04a1b92952e4e520de0056cdbc013de5 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Tue, 22 Jun 2010 14:01:00 +0000 Subject: [PATCH] Copy MIFARE Classic commands codes from the old libnfc source to the libfreefare's one. --- libfreefare/mifare_classic.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libfreefare/mifare_classic.c b/libfreefare/mifare_classic.c index 892fdfd..a8d32cf 100644 --- a/libfreefare/mifare_classic.c +++ b/libfreefare/mifare_classic.c @@ -51,6 +51,15 @@ #include #include "freefare_internal.h" +#define MC_AUTH_A 0x60 +#define MC_AUTH_B 0x61 +#define MC_READ 0x30 +#define MC_WRITE 0xA0 +#define MC_TRANSFER 0xB0 +#define MC_DECREMENT 0xC0 +#define MC_INCREMENT 0xC1 +#define MC_STORE 0xC2 + union mifare_classic_block { unsigned char data[16]; struct {