]> cvs.zerfleddert.de Git - proxmark3-svn/blob - include/smartcard.h
Changes requested by @marshmellow42
[proxmark3-svn] / include / smartcard.h
1 //-----------------------------------------------------------------------------
2 // (c) 2018 Iceman, adapted by Marshmellow
3 //
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
6 // the license.
7 //-----------------------------------------------------------------------------
8 // smart card type prototyping
9 //-----------------------------------------------------------------------------
10 #ifndef __SMARTCARD_H
11 #define __SMARTCARD_H
12
13 //-----------------------------------------------------------------------------
14 // ISO 7618 Smart Card
15 //-----------------------------------------------------------------------------
16 typedef struct {
17 uint8_t atr_len;
18 uint8_t atr[30];
19 } __attribute__((__packed__)) smart_card_atr_t;
20
21 typedef enum SMARTCARD_COMMAND {
22 SC_CONNECT = (1 << 0),
23 SC_NO_DISCONNECT = (1 << 1),
24 SC_RAW = (1 << 2),
25 SC_NO_SELECT = (1 << 3)
26 } smartcard_command_t;
27
28
29 #endif
Impressum, Datenschutz