]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/iso14443b.h
CHG: "hf 14b sim" making the flow to be similar to "hf 14a sim".
[proxmark3-svn] / armsrc / iso14443b.h
index f90c54f3f65c9195e153945619e8fea01263a028..e522c652e91010b2d6a96ebc1595809789413a3d 100644 (file)
@@ -7,15 +7,37 @@
 // at your option, any later version. See the LICENSE.txt file for the text of
 // the license.
 //-----------------------------------------------------------------------------
-// Routines to support ISO 14443 type A.
+// Routines to support ISO 14443 type B.
 //-----------------------------------------------------------------------------
 
 #ifndef __ISO14443B_H
 #define __ISO14443B_H
+
+#include "proxmark3.h"
+#include "apps.h"
+#include "util.h"
+#include "string.h"
+#include "iso14443crc.h"
 #include "common.h"
+#include "mifare.h"
+#include "protocols.h"
+#include "mifareutil.h"                // access to global variable: MF_DBGLEVEL
+
+extern void AppendCrc14443b(uint8_t *data, int len);
+
+void SendRawCommand14443B_Ex(UsbCommand *c);
 
-int iso14443b_apdu(uint8_t const *message, size_t message_length, uint8_t *response);
 void iso14443b_setup();
-int iso14443b_select_card();
+uint8_t iso14443b_apdu(uint8_t const *message, size_t message_length, uint8_t *response);
+uint8_t iso14443b_select_card(iso14b_card_select_t* card);
+uint8_t iso14443b_select_card_srx(iso14b_card_select_t* card);
+
+
+#define SIM_NOFIELD     0
+#define SIM_IDLE        1
+#define SIM_HALTED      2
+#define SIM_SELECTING 3
+#define SIM_HALTING   4
+#define SIM_ACKNOWLEDGE 5
 
 #endif /* __ISO14443B_H */
Impressum, Datenschutz