]> git.zerfleddert.de Git - proxmark3-svn/blame - include/common.h
Fixed some small mistakes in the bit synchronization of Miller and Manchester decodin...
[proxmark3-svn] / include / common.h
CommitLineData
534983d7 1//-----------------------------------------------------------------------------
2// Hagen Fritsch - June 2010
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//-----------------------------------------------------------------------------
9// Interlib Definitions
10//-----------------------------------------------------------------------------
11
12#ifndef __COMMON_H
13#define __COMMON_H
14
15//-----------------------------------------------------------------------------
16// ISO 14443A
17//-----------------------------------------------------------------------------
18typedef struct {
19 uint8_t atqa[2];
20 uint8_t sak;
21 uint8_t ats_len;
22 uint8_t ats[20]; //FIXME: size?
23} __attribute__((__packed__)) iso14a_card_select_t;
24
25typedef enum ISO14A_COMMAND {
26 ISO14A_CONNECT = 1,
27 ISO14A_NO_DISCONNECT = 2,
28 ISO14A_APDU = 4,
29 ISO14A_RAW = 8,
30 ISO14A_REQUEST_TRIGGER = 0x10,
31 ISO14A_APPEND_CRC = 0x20,
32 ISO14A_SET_TIMEOUT = 0x40
33} iso14a_command_t;
34
35#endif
Impressum, Datenschutz