]> cvs.zerfleddert.de Git - proxmark3-svn/blame - armsrc/iso14443b.h
CHG: a message..
[proxmark3-svn] / armsrc / iso14443b.h
CommitLineData
d8af608f 1//-----------------------------------------------------------------------------
2// Merlok - June 2011
3// Gerhard de Koning Gans - May 2008
4// Hagen Fritsch - June 2010
5//
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
8// the license.
9//-----------------------------------------------------------------------------
6fc68747 10// Routines to support ISO 14443 type B.
d8af608f 11//-----------------------------------------------------------------------------
12
13#ifndef __ISO14443B_H
14#define __ISO14443B_H
6fc68747 15
53d5dc64 16#ifdef __cplusplus
17extern "C" {
18#endif
19
6fc68747 20#include "proxmark3.h"
53d5dc64 21#include "common.h" // access to global variable: MF_DBGLEVEL
6fc68747 22#include "apps.h"
23#include "util.h"
24#include "string.h"
25#include "iso14443crc.h"
0de81725 26
6fc68747 27#include "mifare.h"
28#include "protocols.h"
53d5dc64 29//#include "mifareutil.h"
d8af608f 30
0de81725 31extern void AppendCrc14443b(uint8_t *data, int len);
0923c43c 32void SendRawCommand14443B_Ex(UsbCommand *c);
d8af608f 33void iso14443b_setup();
0923c43c 34uint8_t iso14443b_apdu(uint8_t const *message, size_t message_length, uint8_t *response);
6fc68747 35uint8_t iso14443b_select_card(iso14b_card_select_t* card);
36uint8_t iso14443b_select_card_srx(iso14b_card_select_t* card);
37
ffeb77fd 38// testfunctions
39void WaitForFpgaDelayQueueIsEmpty( uint16_t delay );
40void ClearFpgaShiftingRegisters(void);
0923c43c 41
d51717ff 42// States for 14B SIM command
43#define SIM_NOFIELD 0
44#define SIM_IDLE 1
45#define SIM_HALTED 2
46#define SIM_SELECTING 3
47#define SIM_HALTING 4
0923c43c 48#define SIM_ACKNOWLEDGE 5
d51717ff 49#define SIM_WORK 6
d8af608f 50
0de81725 51#ifdef __cplusplus
52}
53#endif
54
d8af608f 55#endif /* __ISO14443B_H */
Impressum, Datenschutz