]>
Commit | Line | Data |
---|---|---|
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 commands | |
9 | //----------------------------------------------------------------------------- | |
10 | ||
11 | #include <stdio.h> | |
12 | #include "proxusb.h" | |
13 | #include "graph.h" | |
14 | #include "ui.h" | |
15 | #include "cmdparser.h" | |
16 | #include "cmdhf.h" | |
17 | #include "cmdhf14a.h" | |
18 | #include "cmdhf14b.h" | |
19 | #include "cmdhf15.h" | |
20 | #include "cmdhflegic.h" | |
21 | ||
22 | static int CmdHelp(const char *Cmd); | |
23 | ||
24 | int CmdHFTune(const char *Cmd) | |
25 | { | |
26 | UsbCommand c={CMD_MEASURE_ANTENNA_TUNING_HF}; | |
27 | SendCommand(&c); | |
28 | return 0; | |
29 | } | |
30 | ||
31 | static command_t CommandTable[] = | |
32 | { | |
33 | {"help", CmdHelp, 1, "This help"}, | |
34 | {"14a", CmdHF14A, 1, "{ ISO14443A RFIDs... }"}, | |
35 | {"14b", CmdHF14B, 1, "{ ISO14443B RFIDs... }"}, | |
36 | {"15", CmdHF15, 1, "{ ISO15693 RFIDs... }"}, | |
37 | {"legic", CmdHFLegic, 0, "{ LEGIC RFIDs... }"}, | |
38 | {"tune", CmdHFTune, 0, "Continuously measure HF antenna tuning"}, | |
39 | {NULL, NULL, 0, NULL} | |
40 | }; | |
41 | ||
42 | int CmdHF(const char *Cmd) | |
43 | { | |
44 | CmdsParse(CommandTable, Cmd); | |
45 | return 0; | |
46 | } | |
47 | ||
48 | int CmdHelp(const char *Cmd) | |
49 | { | |
50 | CmdsHelp(CommandTable); | |
51 | return 0; | |
52 | } |