]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/cmdlfpcf7931.c
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2012 Chalk <chalk.secu at gmail.com>
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
7 //-----------------------------------------------------------------------------
8 // Low frequency PCF7931 commands
9 //-----------------------------------------------------------------------------
13 //#include "proxusb.h"
14 #include "proxmark3.h"
17 #include "cmdparser.h"
21 #include "cmdlfpcf7931.h"
23 static int CmdHelp(const char *Cmd
);
25 int CmdLFPCF7931Read(const char *Cmd
)
27 UsbCommand c
= {CMD_PCF7931_READ
};
30 WaitForResponse(CMD_ACK
,&resp
);
34 static command_t CommandTable
[] =
36 {"help", CmdHelp
, 1, "This help"},
37 {"read", CmdLFPCF7931Read
, 1, "Read content of a PCF7931 transponder"},
41 int CmdLFPCF7931(const char *Cmd
)
43 CmdsParse(CommandTable
, Cmd
);
47 int CmdHelp(const char *Cmd
)
49 CmdsHelp(CommandTable
);