a553f267 |
1 | //----------------------------------------------------------------------------- |
2 | // Copyright (C) 2010 iZsh <izsh at fail0verflow.com> |
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 | // High frequency ISO14443B commands |
9 | //----------------------------------------------------------------------------- |
10 | |
7fe9b0b7 |
11 | #ifndef CMDHF14B_H__ |
12 | #define CMDHF14B_H__ |
13 | |
16658b1f |
14 | #include <stdio.h> |
15 | #include <stdlib.h> |
16 | #include <stdbool.h> |
17 | #include <stdint.h> |
6fc68747 |
18 | #include "iso14443crc.h" |
19 | #include "proxmark3.h" |
20 | #include "data.h" |
21 | #include "graph.h" |
22 | #include "util.h" |
23 | #include "ui.h" |
24 | #include "cmdparser.h" |
25 | #include "cmdmain.h" |
26 | #include "cmdhf14a.h" |
6fc68747 |
27 | #include "cmdhf.h" |
28 | #include "prng.h" |
29 | #include "sha1.h" |
30 | #include "mifare.h" // structs/enum for ISO14B |
31 | #include "protocols.h" // definitions of ISO14B protocol |
32 | |
6fc68747 |
33 | int usage_hf_14b_info(void); |
34 | int usage_hf_14b_reader(void); |
35 | int usage_hf_14b_raw(void); |
36 | int usage_hf_14b_snoop(void); |
37 | int usage_hf_14b_sim(void); |
38 | int usage_hf_14b_read_srx(void); |
39 | int usage_hf_14b_write_srx(void); |
40 | |
7fe9b0b7 |
41 | int CmdHF14B(const char *Cmd); |
7fe9b0b7 |
42 | int CmdHF14BList(const char *Cmd); |
17ad0e09 |
43 | int CmdHF14BInfo(const char *Cmd); |
22e24700 |
44 | int CmdHF14BSim(const char *Cmd); |
7fe9b0b7 |
45 | int CmdHF14BSnoop(const char *Cmd); |
0222acfc |
46 | int CmdHF14BWrite( const char *cmd); |
6fc68747 |
47 | int CmdHF14BReader(const char *Cmd); |
48 | |
49 | bool HF14BInfo(bool verbose); |
50 | bool HF14BReader(bool verbose); |
51 | int CmdHF14BCmdRaw (const char *Cmd); |
52 | |
53 | // SRi ST Microelectronics read/write |
54 | int CmdHF14BReadSri(const char *Cmd); |
55 | int CmdHF14BWriteSri(const char *Cmd); |
7fe9b0b7 |
56 | |
6fc68747 |
57 | bool waitCmd(bool verbose); |
7fe9b0b7 |
58 | #endif |