2017-01-05 08:51:47 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//-----------------------------------------------------------------------------
|
2017-07-14 22:20:34 +08:00
|
|
|
// Low frequency fdx-b tag commands
|
2017-01-05 08:51:47 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef CMDLFFDX_H__
|
|
|
|
#define CMDLFFDX_H__
|
2017-01-05 22:56:52 +08:00
|
|
|
#include "proxmark3.h" // Definitions, USB controls, etc
|
|
|
|
#include "ui.h" // PrintAndLog
|
|
|
|
#include "util.h" // weigandparity
|
2017-01-05 08:51:47 +08:00
|
|
|
#include "cmdparser.h"
|
|
|
|
#include "cmddata.h"
|
|
|
|
#include "cmdmain.h"
|
2017-01-05 22:56:52 +08:00
|
|
|
#include "cmdlf.h" // lf read
|
2017-01-05 08:51:47 +08:00
|
|
|
#include "crc16.h" // for checksum crc-16_ccitt
|
|
|
|
#include "protocols.h" // for T55xx config register definitions
|
2017-01-05 22:56:52 +08:00
|
|
|
#include "lfdemod.h" // parityTest
|
|
|
|
|
2017-07-14 22:20:34 +08:00
|
|
|
extern int CmdLFFdx(const char *Cmd);
|
|
|
|
extern int CmdFdxClone(const char *Cmd);
|
|
|
|
extern int CmdFdxSim(const char *Cmd);
|
|
|
|
extern int CmdFdxRead(const char *Cmd);
|
|
|
|
extern int CmdFdxDemod(const char *Cmd);
|
|
|
|
|
2017-01-05 08:51:47 +08:00
|
|
|
int getFDXBits(uint64_t national_id, uint16_t country, uint8_t isanimal, uint8_t isextended, uint32_t extended, uint8_t *bits);
|
2017-07-30 15:17:48 +08:00
|
|
|
|
|
|
|
extern int usage_lf_fdx_clone(void);
|
|
|
|
extern int usage_lf_fdx_sim(void);
|
|
|
|
extern int usage_lf_fdx_read(void);
|
|
|
|
extern int usage_lf_fdx_demod(void);
|
2017-01-05 08:51:47 +08:00
|
|
|
#endif
|
|
|
|
|