]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - include/mifare.h
1 //-----------------------------------------------------------------------------
2 // (c) 2012 Roel Verdult
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
7 //-----------------------------------------------------------------------------
8 // MIFARE type prototyping
9 //-----------------------------------------------------------------------------
19 #define MF_MAD1_SECTOR 0x00
20 #define MF_MAD2_SECTOR 0x10
22 //-----------------------------------------------------------------------------
24 //-----------------------------------------------------------------------------
32 } __attribute__((__packed__
)) iso14a_card_select_t
;
34 typedef enum ISO14A_COMMAND
{
35 ISO14A_CONNECT
= (1 << 0),
36 ISO14A_NO_DISCONNECT
= (1 << 1),
37 ISO14A_APDU
= (1 << 2),
38 ISO14A_RAW
= (1 << 3),
39 ISO14A_REQUEST_TRIGGER
= (1 << 4),
40 ISO14A_APPEND_CRC
= (1 << 5),
41 ISO14A_SET_TIMEOUT
= (1 << 6),
42 ISO14A_NO_SELECT
= (1 << 7),
43 ISO14A_TOPAZMODE
= (1 << 8),
44 ISO14A_NO_RATS
= (1 << 9),
45 ISO14A_SEND_CHAINING
= (1 << 10),
46 ISO14A_CLEAR_TRACE
= (1 << 11)