]> git.zerfleddert.de Git - proxmark3-svn/blob - client/cmdcrc.c
6191027f0b4177117027ec48f7d2223a1a056719
[proxmark3-svn] / client / cmdcrc.c
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2015 iceman <iceman at iuse.se>
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 // CRC Calculations from the software reveng commands
9 //-----------------------------------------------------------------------------
10
11 #include <stdio.h>
12 #include <string.h>
13 #include "cmdparser.h"
14 #include "cmdcrc.h"
15 //#include "reveng/reveng.h"
16 //#include "reveng/cli.h"
17 static int CmdHelp(const char *Cmd);
18
19 int CmdCrcCalc(const char *Cmd)
20 {
21 //pm3main(Cmd);
22 return 0;
23 }
24
25 static command_t CommandTable[] =
26 {
27 {"help", CmdHelp, 1, "This help"},
28 {"calc", CmdCrcCalc, 1, "{ Calculate CRC's }"},
29 {NULL, NULL, 0, NULL}
30 };
31
32 int CmdCrc(const char *Cmd)
33 {
34 CmdsParse(CommandTable, Cmd);
35 return 0;
36 }
37
38 int CmdHelp(const char *Cmd)
39 {
40 CmdsHelp(CommandTable);
41 return 0;
42 }
Impressum, Datenschutz