proxmark3/client/proxgui.h

56 lines
1.8 KiB
C
Raw Normal View History

//-----------------------------------------------------------------------------
// Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
//
// 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
//-----------------------------------------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
2017-07-28 03:32:15 +08:00
#include <stdint.h>
#include <string.h>
void ShowGraphWindow(void);
void HideGraphWindow(void);
void RepaintGraphWindow(void);
void MainGraphics(void);
void InitGraphics(int argc, char **argv, char *script_cmds_file, char *script_cmd, bool usb_present);
void ExitGraphics(void);
2018-02-21 21:52:31 +08:00
#ifndef MAX_GRAPH_TRACE_LEN
#define MAX_GRAPH_TRACE_LEN (40000 * 8)
2018-02-21 21:52:31 +08:00
#endif
extern int GraphBuffer[MAX_GRAPH_TRACE_LEN];
extern int GraphTraceLen;
2017-07-28 03:32:15 +08:00
extern int s_Buff[MAX_GRAPH_TRACE_LEN];
extern double CursorScaleFactor;
2017-07-28 03:32:15 +08:00
extern int PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, CursorCPos, CursorDPos, GridOffset;
extern int CommandFinished;
extern int offline;
2017-07-28 03:32:15 +08:00
extern bool GridLocked;
//Operations defined in data_operations
2019-04-06 06:52:55 +08:00
//int autoCorr(const int* in, int *out, size_t len, int window);
2019-04-06 06:38:22 +08:00
int AskEdgeDetect(const int *in, int *out, int len, int threshold);
int AutoCorrelate(const int *in, int *out, size_t len, int window, bool SaveGrph, bool verbose);
int directionalThreshold(const int *in, int *out, size_t len, int8_t up, int8_t down);
void save_restoreGB(uint8_t saveOpt);
2017-07-28 03:32:15 +08: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;
extern size_t g_DemodStartIdx;
2017-07-28 03:32:15 +08:00
extern bool showDemod;
extern uint8_t g_debugMode;
#ifdef __cplusplus
}
#endif