2010-02-21 00:47:22 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
2010-02-25 21:57:35 +00:00
|
|
|
// Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
|
|
|
|
//
|
2010-02-21 00:47:22 +00:00
|
|
|
// 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
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2019-04-11 01:16:25 +02:00
|
|
|
#ifndef __PROXGUI_H
|
|
|
|
#define __PROXGUI_H
|
|
|
|
|
2009-04-09 06:43:20 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-07-27 21:32:15 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2009-04-09 06:43:20 +00:00
|
|
|
void ShowGraphWindow(void);
|
|
|
|
void HideGraphWindow(void);
|
|
|
|
void RepaintGraphWindow(void);
|
|
|
|
void MainGraphics(void);
|
2019-04-30 23:52:40 +02:00
|
|
|
void InitGraphics(int argc, char **argv, char *script_cmds_file, char *script_cmd);
|
2009-04-09 06:43:20 +00:00
|
|
|
void ExitGraphics(void);
|
2018-02-21 14:52:31 +01:00
|
|
|
#ifndef MAX_GRAPH_TRACE_LEN
|
2016-02-18 20:19:33 +01:00
|
|
|
#define MAX_GRAPH_TRACE_LEN (40000 * 8)
|
2018-02-21 14:52:31 +01:00
|
|
|
#endif
|
2009-04-09 06:43:20 +00:00
|
|
|
extern int GraphBuffer[MAX_GRAPH_TRACE_LEN];
|
2019-04-13 23:38:34 +02:00
|
|
|
extern size_t GraphTraceLen;
|
2017-07-27 21:32:15 +02:00
|
|
|
extern int s_Buff[MAX_GRAPH_TRACE_LEN];
|
|
|
|
|
2009-04-09 06:43:20 +00:00
|
|
|
extern double CursorScaleFactor;
|
2019-04-13 23:38:34 +02:00
|
|
|
extern int PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, GridOffset;
|
|
|
|
extern uint32_t CursorCPos, CursorDPos;
|
2009-04-09 06:43:20 +00:00
|
|
|
extern int CommandFinished;
|
2009-04-27 19:56:43 +00:00
|
|
|
extern int offline;
|
2017-07-27 21:32:15 +02:00
|
|
|
extern bool GridLocked;
|
|
|
|
|
|
|
|
//Operations defined in data_operations
|
2019-04-06 00:52:55 +02:00
|
|
|
//int autoCorr(const int* in, int *out, size_t len, int window);
|
2019-04-06 00:38:22 +02:00
|
|
|
int AskEdgeDetect(const int *in, int *out, int len, int threshold);
|
2019-04-13 23:55:58 +02:00
|
|
|
int AutoCorrelate(const int *in, int *out, size_t len, size_t window, bool SaveGrph, bool verbose);
|
2019-04-06 00:38:22 +02:00
|
|
|
int directionalThreshold(const int *in, int *out, size_t len, int8_t up, int8_t down);
|
|
|
|
void save_restoreGB(uint8_t saveOpt);
|
2017-07-27 21:32:15 +02:00
|
|
|
|
|
|
|
#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;
|
2018-02-21 14:59:06 +01:00
|
|
|
extern size_t g_DemodStartIdx;
|
2017-07-27 21:32:15 +02:00
|
|
|
extern bool showDemod;
|
|
|
|
extern uint8_t g_debugMode;
|
2009-04-09 06:43:20 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2019-04-11 01:16:25 +02:00
|
|
|
#endif
|