]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/proxgui.h
77bcbf011e4c0cd320043d26d96b2ab9d0372539
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
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
7 //-----------------------------------------------------------------------------
9 //-----------------------------------------------------------------------------
18 void ShowGraphWindow(void);
19 void HideGraphWindow(void);
20 void RepaintGraphWindow(void);
21 void MainGraphics(void);
22 void InitGraphics(int argc
, char **argv
, char *script_cmds_file
, char *script_cmd
, bool usb_present
);
23 void ExitGraphics(void);
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
];
30 extern double CursorScaleFactor
;
31 extern int PlotGridX
, PlotGridY
, PlotGridXdefault
, PlotGridYdefault
, CursorCPos
, CursorDPos
, GridOffset
;
32 extern int CommandFinished
;
34 extern bool GridLocked
;
36 //Operations defined in data_operations
37 //extern int autoCorr(const int* in, int *out, size_t len, int window);
38 extern int AskEdgeDetect(const int *in
, int *out
, int len
, int threshold
);
39 extern int AutoCorrelate(const int *in
, int *out
, size_t len
, int window
, bool SaveGrph
, bool verbose
);
40 extern int directionalThreshold(const int* in
, int *out
, size_t len
, int8_t up
, int8_t down
);
41 extern void save_restoreGB(uint8_t saveOpt
);
44 #define GRAPH_RESTORE 0
45 #define MAX_DEMOD_BUF_LEN (1024*128)
46 extern uint8_t DemodBuffer
[MAX_DEMOD_BUF_LEN
];
47 extern size_t DemodBufferLen
;
48 extern size_t g_DemodStartIdx
;
49 extern bool showDemod
;
50 extern uint8_t g_debugMode
;