mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 18:33:18 +08:00
d19754567d
* .h include only the strict minimum for their own parsing * this forces all files to include explicitment their needs and not count on far streched dependencies * this helps Makefile to rebuild only the minimum * according to this rule, most standalone .h are now gone * big app.h is gone * remove seldom __cplusplus, if c++ happens, everything will have to be done properly anyway * all unrequired include were removed * split common/ into common/ (client+arm) and common_arm/ (os+bootloader) * bring zlib to common/ * bring stuff not really/not yet used in common back to armsrc/ or client/ * bring liblua into client/ * bring uart into client/ * move some portions of code around (dbprint, protocols,...) * rename unused files into *_disabled.[ch] to make it explicit * rename soft Uarts between 14a, 14b and iclass, so a standalone could use several without clash * remove PrintAndLogDevice * move deprecated-hid-flasher from client to tools * Makefiles * treat deps in armsrc/ as in client/ * client: stop on warning (-Werror), same as for armsrc/ Tested on: * all standalone modes * Linux
61 lines
1.9 KiB
C
61 lines
1.9 KiB
C
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
|
|
//
|
|
// 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.
|
|
//-----------------------------------------------------------------------------
|
|
// GUI functions
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef __PROXGUI_H
|
|
#define __PROXGUI_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
|
|
void ShowGraphWindow(void);
|
|
void HideGraphWindow(void);
|
|
void RepaintGraphWindow(void);
|
|
void MainGraphics(void);
|
|
void InitGraphics(int argc, char **argv, char *script_cmds_file, char *script_cmd, bool stayInCommandLoop);
|
|
void ExitGraphics(void);
|
|
#ifndef MAX_GRAPH_TRACE_LEN
|
|
#define MAX_GRAPH_TRACE_LEN (40000 * 8)
|
|
#endif
|
|
extern int GraphBuffer[MAX_GRAPH_TRACE_LEN];
|
|
extern size_t GraphTraceLen;
|
|
extern int s_Buff[MAX_GRAPH_TRACE_LEN];
|
|
|
|
extern double CursorScaleFactor;
|
|
extern int PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, GridOffset;
|
|
extern uint32_t CursorCPos, CursorDPos;
|
|
extern int CommandFinished;
|
|
extern int offline;
|
|
extern bool GridLocked;
|
|
|
|
//Operations defined in data_operations
|
|
//int autoCorr(const int* in, int *out, size_t len, int window);
|
|
int AskEdgeDetect(const int *in, int *out, int len, int threshold);
|
|
int AutoCorrelate(const int *in, int *out, size_t len, size_t window, bool SaveGrph, bool verbose);
|
|
int directionalThreshold(const int *in, int *out, size_t len, int8_t up, int8_t down);
|
|
void save_restoreGB(uint8_t saveOpt);
|
|
|
|
#define GRAPH_SAVE 1
|
|
#define GRAPH_RESTORE 0
|
|
#define MAX_DEMOD_BUF_LEN (1024*128)
|
|
extern uint8_t DemodBuffer[MAX_DEMOD_BUF_LEN];
|
|
extern size_t DemodBufferLen;
|
|
extern size_t g_DemodStartIdx;
|
|
extern bool showDemod;
|
|
extern uint8_t g_debugMode;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|