fix one too small
[RRG-proxmark3.git] / client / src / cmdcrc.h
blobb642a4bf6a882eb660009be2a4df17fa57682f17
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.
5 //
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 //-----------------------------------------------------------------------------
21 #ifndef CMDCRC_H__
22 #define CMDCRC_H__
24 #include "common.h"
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);
30 #endif