2020-06-15 20:31:43 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2020 tharexde
|
|
|
|
//
|
|
|
|
// 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 EM4x50 commands
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef CMDLFEM4X50_H__
|
|
|
|
#define CMDLFEM4X50_H__
|
|
|
|
|
2020-06-29 03:33:37 +08:00
|
|
|
#include"common.h"
|
2020-06-30 23:43:47 +08:00
|
|
|
#include "em4x50.h"
|
2020-06-29 03:33:37 +08:00
|
|
|
|
2020-06-30 23:43:47 +08:00
|
|
|
int read_em4x50_uid(void);
|
|
|
|
bool detect_4x50_block(void);
|
2020-10-28 02:16:54 +08:00
|
|
|
int em4x50_read(em4x50_data_t *etd, em4x50_word_t *out);
|
2020-06-15 20:31:43 +08:00
|
|
|
|
|
|
|
int CmdEM4x50Info(const char *Cmd);
|
2020-06-17 05:25:17 +08:00
|
|
|
int CmdEM4x50Write(const char *Cmd);
|
|
|
|
int CmdEM4x50WritePassword(const char *Cmd);
|
2020-06-29 03:33:37 +08:00
|
|
|
int CmdEM4x50Read(const char *Cmd);
|
2020-07-06 11:41:44 +08:00
|
|
|
int CmdEM4x50Dump(const char *Cmd);
|
2020-07-09 07:58:50 +08:00
|
|
|
int CmdEM4x50Wipe(const char *Cmd);
|
2020-09-27 19:42:27 +08:00
|
|
|
int CmdEM4x50Brute(const char *Cmd);
|
2020-09-28 05:22:51 +08:00
|
|
|
int CmdEM4x50Login(const char *Cmd);
|
2020-09-28 05:39:04 +08:00
|
|
|
int CmdEM4x50Reset(const char *Cmd);
|
2020-10-06 04:59:08 +08:00
|
|
|
int CmdEM4x50Watch(const char *Cmd);
|
2020-10-25 23:39:22 +08:00
|
|
|
int CmdEM4x50Restore(const char *Cmd);
|
2020-10-27 05:10:48 +08:00
|
|
|
int CmdEM4x50Sim(const char *Cmd);
|
2020-10-28 01:18:02 +08:00
|
|
|
int CmdEM4x50StdRead(const char *Cmd);
|
2020-10-30 07:41:45 +08:00
|
|
|
int CmdEM4x50ELoad(const char *Cmd);
|
|
|
|
int CmdEM4x50ESave(const char *Cmd);
|
2020-07-09 07:58:50 +08:00
|
|
|
|
2020-06-15 20:31:43 +08:00
|
|
|
#endif
|