]> cvs.zerfleddert.de Git - proxmark3-svn/blame - client/cmdlfcotag.c
ADD: `lf cotag` - added first try at basic functionality to read samples from Cotag...
[proxmark3-svn] / client / cmdlfcotag.c
CommitLineData
4653da43 1//-----------------------------------------------------------------------------
2// Authored by Iceman
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// Low frequency COTAG commands
9//-----------------------------------------------------------------------------
10#include "cmdlfcotag.h" // COTAG function declarations
11
12static int CmdHelp(const char *Cmd);
13
14int CmdCOTAGRead(const char *Cmd) {
15
16// if (Cmd[0] == 'h' || Cmd[0] == 'H') return usage_lf_cotag_read();
17
18 UsbCommand c = {CMD_COTAG, {0, 0, 0}};
19 clearCommandBuffer();
20 SendCommand(&c);
21
22 getSamples("20000", TRUE);
23 return CmdFSKdemodAWID(Cmd);
24}
25
26static command_t CommandTable[] = {
27 {"help", CmdHelp, 1, "This help"},
28 {"read", CmdCOTAGRead, 0, "Attempt to read and extract tag data"},
29 {NULL, NULL, 0, NULL}
30};
31
32int CmdLFCOTAG(const char *Cmd) {
33 clearCommandBuffer();
34 CmdsParse(CommandTable, Cmd);
35 return 0;
36}
37
38int CmdHelp(const char *Cmd) {
39 CmdsHelp(CommandTable);
40 return 0;
41}
Impressum, Datenschutz