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);
|
|
|
|
int em4x50_read(em4x50_data_t *etd, em4x50_word_t *out, bool verbose);
|
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-06-15 20:31:43 +08:00
|
|
|
#endif
|