]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhflegic.c
Client cleanup and restructuring. Stage 1...
[proxmark3-svn] / client / cmdhflegic.c
diff --git a/client/cmdhflegic.c b/client/cmdhflegic.c
new file mode 100644 (file)
index 0000000..62ff942
--- /dev/null
@@ -0,0 +1,31 @@
+#include "proxusb.h"
+#include "cmdparser.h"
+#include "cmdhflegic.h"
+
+static int CmdHelp(const char *Cmd);
+
+int CmdLegicRFRead(const char *Cmd)
+{
+  UsbCommand c = {CMD_READER_LEGIC_RF};
+  SendCommand(&c);
+  return 0;
+}
+
+static command_t CommandTable[] = 
+{
+  {"help",        CmdHelp,        1, "This help"},
+  {"reader",      CmdLegicRFRead, 0, "Start the LEGIC RF reader"},
+  {NULL, NULL, 0, NULL}
+};
+
+int CmdHFLegic(const char *Cmd)
+{
+  CmdsParse(CommandTable, Cmd);
+  return 0;
+}
+
+int CmdHelp(const char *Cmd)
+{
+  CmdsHelp(CommandTable);
+  return 0;
+}
Impressum, Datenschutz