]> git.zerfleddert.de Git - proxmark3-svn/blame - client/cmdlfpcf7931.c
Merge branch 'master' into topaz
[proxmark3-svn] / client / cmdlfpcf7931.c
CommitLineData
54a942b0 1//-----------------------------------------------------------------------------
2// Copyright (C) 2012 Chalk <chalk.secu at gmail.com>
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 PCF7931 commands
9//-----------------------------------------------------------------------------
10
11#include <stdio.h>
12#include <string.h>
54a942b0 13#include "proxmark3.h"
14#include "ui.h"
15#include "graph.h"
16#include "cmdparser.h"
17#include "cmddata.h"
18#include "cmdmain.h"
19#include "cmdlf.h"
20#include "cmdlfpcf7931.h"
21
22static int CmdHelp(const char *Cmd);
23
24int CmdLFPCF7931Read(const char *Cmd)
25{
26 UsbCommand c = {CMD_PCF7931_READ};
27 SendCommand(&c);
28 UsbCommand resp;
29 WaitForResponse(CMD_ACK,&resp);
30 return 0;
31}
32
33static command_t CommandTable[] =
34{
35 {"help", CmdHelp, 1, "This help"},
36 {"read", CmdLFPCF7931Read, 1, "Read content of a PCF7931 transponder"},
37 {NULL, NULL, 0, NULL}
38};
39
40int CmdLFPCF7931(const char *Cmd)
41{
42 CmdsParse(CommandTable, Cmd);
43 return 0;
44}
45
46int CmdHelp(const char *Cmd)
47{
48 CmdsHelp(CommandTable);
49 return 0;
50}
Impressum, Datenschutz