fix one too small
[RRG-proxmark3.git] / client / src / cmdlfem.c
blob8b6c5cabb9a487ade33bf0099d4ec5f89c8391ee
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // Low frequency EM4x commands
17 //-----------------------------------------------------------------------------
19 #include "cmdlfem.h"
20 #include "cmdlfem410x.h"
21 #include "cmdlfem4x05.h"
22 #include "cmdlfem4x50.h"
23 #include "cmdlfem4x70.h"
25 #include <inttypes.h>
26 #include <stdlib.h>
27 #include "cmdparser.h" // command_t
28 #include "comms.h" // clearCommandBuffer
29 #include "cmdlf.h"
31 static int CmdHelp(const char *Cmd);
33 static command_t CommandTable[] = {
34 {"help", CmdHelp, AlwaysAvailable, "This help"},
35 {"410x", CmdLFEM410X, AlwaysAvailable, "{ EM 4102 commands... }"},
36 {"4x05", CmdLFEM4X05, AlwaysAvailable, "{ EM 4205 / 4305 / 4369 / 4469 commands... }"},
37 {"4x50", CmdLFEM4X50, AlwaysAvailable, "{ EM 4350 / 4450 commands... }"},
38 {"4x70", CmdLFEM4X70, AlwaysAvailable, "{ EM 4070 / 4170 commands... }"},
39 {NULL, NULL, NULL, NULL}
42 static int CmdHelp(const char *Cmd) {
43 (void)Cmd; // Cmd is not used so far
44 CmdsHelp(CommandTable);
45 return PM3_SUCCESS;
48 int CmdLFEM(const char *Cmd) {
49 clearCommandBuffer();
50 return CmdsParse(CommandTable, Cmd);