mirror of
https://github.com/Proxmark/proxmark3.git
synced 2024-11-11 09:59:45 +08:00
3fe4ff4f03
CHG: USB_CMD_DATA_SIZE is now used as maxsize for transfer of data between client and pm3device CHG: suggested a fix for the underscore problem in ioclass\fileutils.c ADD: tnp3xx support ADD: nxp tag idents. ADD: identifiction of chinese backdoor commands to hf 14a reader.
50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2012 Chalk <chalk.secu at gmail.com>
|
|
//
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
// the license.
|
|
//-----------------------------------------------------------------------------
|
|
// Low frequency PCF7931 commands
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "proxmark3.h"
|
|
#include "ui.h"
|
|
#include "graph.h"
|
|
#include "cmdparser.h"
|
|
#include "cmddata.h"
|
|
#include "cmdmain.h"
|
|
#include "cmdlf.h"
|
|
#include "cmdlfpcf7931.h"
|
|
|
|
static int CmdHelp(const char *Cmd);
|
|
|
|
int CmdLFPCF7931Read(const char *Cmd)
|
|
{
|
|
UsbCommand c = {CMD_PCF7931_READ};
|
|
SendCommand(&c);
|
|
UsbCommand resp;
|
|
WaitForResponse(CMD_ACK,&resp);
|
|
return 0;
|
|
}
|
|
|
|
static command_t CommandTable[] =
|
|
{
|
|
{"help", CmdHelp, 1, "This help"},
|
|
{"read", CmdLFPCF7931Read, 1, "Read content of a PCF7931 transponder"},
|
|
{NULL, NULL, 0, NULL}
|
|
};
|
|
|
|
int CmdLFPCF7931(const char *Cmd)
|
|
{
|
|
CmdsParse(CommandTable, Cmd);
|
|
return 0;
|
|
}
|
|
|
|
int CmdHelp(const char *Cmd)
|
|
{
|
|
CmdsHelp(CommandTable);
|
|
return 0;
|
|
}
|