2018-05-03 18:15:03 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2018 iceman
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Proxmark3 RDV40 Flash memory commands
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2019-01-23 17:57:49 +08:00
|
|
|
#ifdef WITH_FLASH
|
|
|
|
|
2018-05-03 18:15:03 +08:00
|
|
|
#ifndef CMDFLASHMEM_H__
|
|
|
|
#define CMDFLASHMEM_H__
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include "proxmark3.h"
|
|
|
|
#include "ui.h"
|
|
|
|
#include "cmdparser.h"
|
|
|
|
#include "common.h"
|
|
|
|
#include "util.h"
|
|
|
|
#include "util_posix.h" // msclock
|
|
|
|
#include "loclass/fileutils.h" //saveFile
|
2018-09-07 03:43:20 +08:00
|
|
|
#include "comms.h" //getfromdevice
|
2018-05-03 18:15:03 +08:00
|
|
|
|
2019-01-02 01:01:40 +08:00
|
|
|
typedef enum {
|
|
|
|
DICTIONARY_NONE = 0,
|
|
|
|
DICTIONARY_MIFARE,
|
|
|
|
DICTIONARY_T55XX,
|
|
|
|
DICTIONARY_ICLASS
|
|
|
|
} Dictionary_t;
|
|
|
|
|
2018-05-03 18:15:03 +08:00
|
|
|
extern int CmdFlashMem(const char *Cmd);
|
|
|
|
|
2018-05-23 15:30:33 +08:00
|
|
|
extern int CmdFlashMemRead(const char* cmd);
|
2018-05-03 18:15:03 +08:00
|
|
|
extern int CmdFlashMemLoad(const char* cmd);
|
|
|
|
extern int CmdFlashMemSave(const char* cmd);
|
|
|
|
extern int CmdFlashMemWipe(const char *Cmd);
|
2018-05-23 15:30:33 +08:00
|
|
|
extern int CmdFlashMemInfo(const char *Cmd);
|
2019-01-23 17:57:49 +08:00
|
|
|
#endif
|
|
|
|
|
2018-05-03 18:15:03 +08:00
|
|
|
#endif
|