1 //-----------------------------------------------------------------------------
2 // Borrowed initially from https://reveng.sourceforge.io/
3 // Copyright (C) Greg Cook 2019
4 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
6 // This program is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation, either version 3 of the License, or
9 // (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // See LICENSE.txt for the text of the license.
17 //-----------------------------------------------------------------------------
18 // CRC Calculations from the software reveng commands
19 //-----------------------------------------------------------------------------
26 int CmdCrc(const char *Cmd
);
28 int GetModels(char *Models
[], int *count
, uint8_t *width
);
29 int RunModel(char *inModel
, char *inHexStr
, bool reverse
, char endian
, char *result
);