2015-05-16 21:36:40 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2015 iceman <iceman at iuse.se>
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// CRC Calculations from the software reveng commands
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef CMDCRC_H__
|
|
|
|
#define CMDCRC_H__
|
|
|
|
|
2019-08-08 22:57:33 +08:00
|
|
|
#include "common.h"
|
2017-07-30 15:17:48 +08:00
|
|
|
|
2019-04-06 06:38:22 +08:00
|
|
|
int CmdCrc(const char *Cmd);
|
2017-07-30 15:17:48 +08:00
|
|
|
|
2019-04-06 06:38:22 +08:00
|
|
|
int GetModels(char *Models[], int *count, uint8_t *width);
|
|
|
|
int RunModel(char *inModel, char *inHexStr, bool reverse, char endian, char *result);
|
2015-05-16 21:36:40 +08:00
|
|
|
#endif
|