]> git.zerfleddert.de Git - proxmark3-svn/blob - client/proxgui.h
a6d8f24a1287fab8608b469abb00ab3bea39d190
[proxmark3-svn] / client / proxgui.h
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
12 extern "C" {
13 #endif
14
15 #include <stdint.h>
16 #include <string.h>
17
18 void ShowGraphWindow(void);
19 void HideGraphWindow(void);
20 void RepaintGraphWindow(void);
21 void MainGraphics(void);
22 void InitGraphics(int argc, char **argv);
23 void ExitGraphics(void);
24
25 #define MAX_GRAPH_TRACE_LEN (40000*8)
26 extern int GraphBuffer[MAX_GRAPH_TRACE_LEN];
27 extern int GraphTraceLen;
28 extern int s_Buff[MAX_GRAPH_TRACE_LEN];
29
30 extern double CursorScaleFactor;
31 extern int PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, CursorCPos, CursorDPos, GridOffset;
32 extern int CommandFinished;
33 extern int offline;
34 extern bool GridLocked;
35
36 //Operations defined in data_operations
37 extern int autoCorr(const int* in, int *out, size_t len, int window);
38 extern int directionalThreshold(const int* in, int *out, size_t len, int8_t up, int8_t down);
39 extern void save_restoreGB(uint8_t saveOpt);
40
41 #define MAX_DEMOD_BUF_LEN (1024*128)
42 extern uint8_t DemodBuffer[MAX_DEMOD_BUF_LEN];
43 extern size_t DemodBufferLen;
44 extern size_t g_DemodStartIdx;
45 extern bool showDemod;
46
47 #ifdef __cplusplus
48 }
49 #endif
Impressum, Datenschutz