]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/mifarehost.h
FIX: 'lf hid sim' - it now prints the id correct ref https://github.com/Proxmark...
[proxmark3-svn] / client / mifarehost.h
index a9db4ec384a7c950e9c57a12d9d21cb9861cf913..7f9a2b45a785984e0cd5d5b58c68b3a37c789969 100644 (file)
@@ -8,17 +8,21 @@
 // High frequency ISO14443A commands\r
 //-----------------------------------------------------------------------------\r
 \r
+#ifndef MIFAREHOST_H\r
+#define MIFAREHOST_H\r
+\r
 #include <stdint.h>\r
 #include <stdbool.h>\r
 #include "data.h"\r
 \r
 // mfCSetBlock work flags\r
-#define CSETBLOCK_UID                                  0x01\r
-#define CSETBLOCK_WUPC                                 0x02\r
-#define CSETBLOCK_HALT                                 0x04\r
+#define CSETBLOCK_UID                          0x01\r
+#define CSETBLOCK_WUPC                         0x02\r
+#define CSETBLOCK_HALT                         0x04\r
 #define CSETBLOCK_INIT_FIELD                   0x08\r
 #define CSETBLOCK_RESET_FIELD                  0x10\r
 #define CSETBLOCK_SINGLE_OPER                  0x1F\r
+#define CSETBLOCK_MAGIC_1B                     0x40\r
 \r
 extern char logHexFileName[FILE_PATH_SIZE];\r
 \r
@@ -42,3 +46,7 @@ extern int isBlockTrailer(int blockN);
 extern int loadTraceCard(uint8_t *tuid);\r
 extern int saveTraceCard(void);\r
 extern int tryDecryptWord(uint32_t nt, uint32_t ar_enc, uint32_t at_enc, uint8_t *data, int len);\r
+\r
+extern int mfCIdentify();\r
+\r
+#endif\r
Impressum, Datenschutz