]>
git.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 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
26 } __attribute__((__packed__
)) iso14a_card_select_t
;
28 typedef enum ISO14A_COMMAND
{
29 ISO14A_CONNECT
= (1 << 0),
30 ISO14A_NO_DISCONNECT
= (1 << 1),
31 ISO14A_APDU
= (1 << 2),
32 ISO14A_RAW
= (1 << 3),
33 ISO14A_REQUEST_TRIGGER
= (1 << 4),
34 ISO14A_APPEND_CRC
= (1 << 5),
35 ISO14A_SET_TIMEOUT
= (1 << 6),
36 ISO14A_NO_SELECT
= (1 << 7),
37 ISO14A_TOPAZMODE
= (1 << 8)
41 //-----------------------------------------------------------------------------
43 //-----------------------------------------------------------------------------
50 } __attribute__((__packed__
)) iso14b_card_select_t
;
53 typedef enum ISO14B_COMMAND
{
54 ISO14B_CONNECT
= (1 << 0),
55 ISO14B_DISCONNECT
= (1 << 1),
56 ISO14B_APDU
= (1 << 2),
57 ISO14B_RAW
= (1 << 3),
58 ISO14B_REQUEST_TRIGGER
= (1 << 4),
59 ISO14B_APPEND_CRC
= (1 << 5),
60 ISO14B_SELECT_STD
= (1 << 6),
61 ISO14B_SELECT_SR
= (1 << 7)