]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/iso14443b.h
1 //-----------------------------------------------------------------------------
3 // Gerhard de Koning Gans - May 2008
4 // Hagen Fritsch - June 2010
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
9 //-----------------------------------------------------------------------------
10 // Routines to support ISO 14443 type B.
11 //-----------------------------------------------------------------------------
20 #include "proxmark3.h"
21 #include "common.h" // access to global variable: MF_DBGLEVEL
25 #include "iso14443crc.h"
28 #include "protocols.h"
29 //#include "mifareutil.h"
31 extern void AppendCrc14443b(uint8_t *data
, int len
);
32 void SendRawCommand14443B_Ex(UsbCommand
*c
);
33 void iso14443b_setup();
34 uint8_t iso14443b_apdu(uint8_t const *message
, size_t message_length
, uint8_t *response
);
35 uint8_t iso14443b_select_card(iso14b_card_select_t
* card
);
36 uint8_t iso14443b_select_card_srx(iso14b_card_select_t
* card
);
39 void WaitForFpgaDelayQueueIsEmpty( uint16_t delay
);
40 void ClearFpgaShiftingRegisters(void);
42 // States for 14B SIM command
46 #define SIM_SELECTING 3
48 #define SIM_ACKNOWLEDGE 5
55 #endif /* __ISO14443B_H */