style
[RRG-proxmark3.git] / client / src / cmdlfindala.h
blob814d10000f499143728ad79af65eea65bdec6375
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // Low frequency Indala commands
17 //-----------------------------------------------------------------------------
19 #ifndef CMDLFINDALA_H__
20 #define CMDLFINDALA_H__
22 #include "common.h"
24 int CmdLFINDALA(const char *Cmd);
26 int detectIndala(uint8_t *dest, size_t *size, uint8_t *invert);
27 //int detectIndala26(uint8_t *bitStream, size_t *size, uint8_t *invert);
28 //int detectIndala64(uint8_t *bitStream, size_t *size, uint8_t *invert);
29 //int detectIndala224(uint8_t *bitStream, size_t *size, uint8_t *invert);
30 int demodIndalaEx(int clk, int invert, int maxErr, bool verbose);
31 int demodIndala(bool verbose);
32 int getIndalaBits(uint8_t fc, uint16_t cn, uint8_t *bits);
33 int getIndalaBits4041x(uint8_t fc, uint16_t cn, uint8_t *bits);
34 bool parityOdd(uint16_t x);
35 bool parityEven(uint16_t x);
37 #endif