2017-07-30 15:17:48 +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.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Low frequency Indala commands
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef CMDLFINDALA_H__
|
|
|
|
#define CMDLFINDALA_H__
|
|
|
|
|
|
|
|
#include <stdio.h> // sscanf
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include "proxmark3.h" // Definitions, USB controls, etc
|
|
|
|
#include "ui.h" // PrintAndLog
|
|
|
|
#include "cmdparser.h" // CmdsParse, CmdsHelp
|
2018-02-21 23:41:39 +08:00
|
|
|
#include "lfdemod.h" // parityTest, bitbytes_to_byte
|
2017-07-30 15:17:48 +08:00
|
|
|
#include "util.h" // weigandparity
|
|
|
|
#include "protocols.h" // for T55xx config register definitions
|
|
|
|
#include "cmdmain.h"
|
|
|
|
#include "cmddata.h"
|
2019-03-10 06:35:06 +08:00
|
|
|
#include "cmdlf.h" // lf_read
|
2017-07-30 15:17:48 +08:00
|
|
|
|
2019-04-06 06:38:22 +08:00
|
|
|
int CmdLFINDALA(const char *Cmd);
|
2017-07-30 15:17:48 +08:00
|
|
|
|
2019-04-06 06:38:22 +08:00
|
|
|
int CmdIndalaDemod(const char *Cmd);
|
|
|
|
int CmdIndalaDemodAlt(const char *Cmd);
|
|
|
|
int CmdIndalaRead(const char *Cmd);
|
|
|
|
int CmdIndalaClone(const char *Cmd);
|
|
|
|
int CmdIndalaSim(const char *Cmd);
|
2017-07-30 15:17:48 +08:00
|
|
|
|
2019-04-06 06:38:22 +08:00
|
|
|
int detectIndala26(uint8_t *bitStream, size_t *size, uint8_t *invert);
|
|
|
|
int detectIndala64(uint8_t *bitStream, size_t *size, uint8_t *invert);
|
|
|
|
int detectIndala224(uint8_t *bitStream, size_t *size, uint8_t *invert);
|
2017-08-10 20:19:57 +08:00
|
|
|
|
2017-07-30 15:17:48 +08:00
|
|
|
#endif
|