]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - client/proxgui.h
Comms refactor (prerequisite of libproxmark work) (#371)
[proxmark3-svn] / client / proxgui.h
... / ...
CommitLineData
1//-----------------------------------------------------------------------------
2// Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
3//
4// This code is licensed to you under the terms of the GNU GPL, version 2 or,
5// at your option, any later version. See the LICENSE.txt file for the text of
6// the license.
7//-----------------------------------------------------------------------------
8// GUI functions
9//-----------------------------------------------------------------------------
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include <stdint.h>
16#include <string.h>
17#include "uart.h"
18
19void ShowGraphWindow(void);
20void HideGraphWindow(void);
21void RepaintGraphWindow(void);
22void MainGraphics(void);
23void InitGraphics(int argc, char **argv, char *script_cmds_file, char *script_cmd, bool usb_present, serial_port* sp);
24void ExitGraphics(void);
25
26#define MAX_GRAPH_TRACE_LEN (40000*8)
27extern int GraphBuffer[MAX_GRAPH_TRACE_LEN];
28extern int GraphTraceLen;
29extern int s_Buff[MAX_GRAPH_TRACE_LEN];
30
31extern double CursorScaleFactor;
32extern int PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, CursorCPos, CursorDPos, GridOffset;
33extern int CommandFinished;
34extern bool GridLocked;
35
36//Operations defined in data_operations
37//extern int autoCorr(const int* in, int *out, size_t len, int window);
38extern int AskEdgeDetect(const int *in, int *out, int len, int threshold);
39extern int AutoCorrelate(const int *in, int *out, size_t len, int window, bool SaveGrph, bool verbose);
40extern int directionalThreshold(const int* in, int *out, size_t len, int8_t up, int8_t down);
41extern void save_restoreGB(uint8_t saveOpt);
42
43#define GRAPH_SAVE 1
44#define GRAPH_RESTORE 0
45#define MAX_DEMOD_BUF_LEN (1024*128)
46extern uint8_t DemodBuffer[MAX_DEMOD_BUF_LEN];
47extern size_t DemodBufferLen;
48extern size_t g_DemodStartIdx;
49extern bool showDemod;
50extern uint8_t g_debugMode;
51
52#ifdef __cplusplus
53}
54#endif
Impressum, Datenschutz