]> git.zerfleddert.de Git - proxmark3-svn/blob - armsrc/iso14443b.h
CHG: finalized the merge between peter filmoores 14atagfuzz branch (emv). I seriou...
[proxmark3-svn] / armsrc / iso14443b.h
1 //-----------------------------------------------------------------------------
2 // Merlok - June 2011
3 // Gerhard de Koning Gans - May 2008
4 // Hagen Fritsch - June 2010
5 //
6 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
7 // at your option, any later version. See the LICENSE.txt file for the text of
8 // the license.
9 //-----------------------------------------------------------------------------
10 // Routines to support ISO 14443 type B.
11 //-----------------------------------------------------------------------------
12
13 #ifndef __ISO14443B_H
14 #define __ISO14443B_H
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 #include "proxmark3.h"
21 #include "common.h" // access to global variable: MF_DBGLEVEL
22 #include "apps.h"
23 #include "util.h"
24 #include "string.h"
25 #include "iso14443crc.h"
26 #include "mifare.h"
27 #include "protocols.h"
28
29 extern void AppendCrc14443b(uint8_t *data, int len);
30 void SendRawCommand14443B_Ex(UsbCommand *c);
31 void iso14443b_setup();
32 uint8_t iso14443b_apdu(uint8_t const *message, size_t message_length, uint8_t *response);
33 uint8_t iso14443b_select_card(iso14b_card_select_t* card);
34 uint8_t iso14443b_select_card_srx(iso14b_card_select_t* card);
35
36 // testfunctions
37 void WaitForFpgaDelayQueueIsEmpty( uint16_t delay );
38 void ClearFpgaShiftingRegisters(void);
39
40 // States for 14B SIM command
41 #define SIM_NOFIELD 0
42 #define SIM_IDLE 1
43 #define SIM_HALTED 2
44 #define SIM_SELECTING 3
45 #define SIM_HALTING 4
46 #define SIM_ACKNOWLEDGE 5
47 #define SIM_WORK 6
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif /* __ISO14443B_H */
Impressum, Datenschutz