]>
Commit | Line | Data |
---|---|---|
a553f267 | 1 | //----------------------------------------------------------------------------- |
212ef3a0 | 2 | // Copyright (C) 2009 Michael Gernoth <michael at gernoth.net> |
3 | // | |
a553f267 | 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 | ||
6658905f | 11 | #ifdef __cplusplus |
12 | extern "C" { | |
13 | #endif | |
14 | ||
b8fdac9e | 15 | #include <stdint.h> |
16 | #include <string.h> | |
17 | ||
6658905f | 18 | void ShowGraphWindow(void); |
19 | void HideGraphWindow(void); | |
20 | void RepaintGraphWindow(void); | |
21 | void MainGraphics(void); | |
3851172d | 22 | void InitGraphics(int argc, char **argv, char *script_cmds_file, char *script_cmd, bool usb_present); |
6658905f | 23 | void ExitGraphics(void); |
24 | ||
88e85bde | 25 | #define MAX_GRAPH_TRACE_LEN (40000*8) |
6658905f | 26 | extern int GraphBuffer[MAX_GRAPH_TRACE_LEN]; |
27 | extern int GraphTraceLen; | |
b8fdac9e | 28 | extern int s_Buff[MAX_GRAPH_TRACE_LEN]; |
29 | ||
6658905f | 30 | extern double CursorScaleFactor; |
0f321d63 | 31 | extern int PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, CursorCPos, CursorDPos, GridOffset; |
6658905f | 32 | extern int CommandFinished; |
0f321d63 | 33 | extern bool GridLocked; |
6658905f | 34 | |
b8fdac9e | 35 | //Operations defined in data_operations |
c4f51073 | 36 | //extern int autoCorr(const int* in, int *out, size_t len, int window); |
37 | extern int AskEdgeDetect(const int *in, int *out, int len, int threshold); | |
38 | extern int AutoCorrelate(const int *in, int *out, size_t len, int window, bool SaveGrph, bool verbose); | |
b8fdac9e | 39 | extern int directionalThreshold(const int* in, int *out, size_t len, int8_t up, int8_t down); |
40 | extern void save_restoreGB(uint8_t saveOpt); | |
41 | ||
3fd7fce4 | 42 | #define GRAPH_SAVE 1 |
43 | #define GRAPH_RESTORE 0 | |
b8fdac9e | 44 | #define MAX_DEMOD_BUF_LEN (1024*128) |
45 | extern uint8_t DemodBuffer[MAX_DEMOD_BUF_LEN]; | |
46 | extern size_t DemodBufferLen; | |
47 | extern size_t g_DemodStartIdx; | |
48 | extern bool showDemod; | |
1a3c0064 | 49 | extern uint8_t g_debugMode; |
b8fdac9e | 50 | |
6658905f | 51 | #ifdef __cplusplus |
52 | } | |
53 | #endif |