]> git.zerfleddert.de Git - proxmark3-svn/blob - client/graph.h
Adding homebrew tap method for macOS
[proxmark3-svn] / client / graph.h
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
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 // Graph utilities
9 //-----------------------------------------------------------------------------
10
11 #ifndef GRAPH_H__
12 #define GRAPH_H__
13 #include <stdint.h>
14
15 void AppendGraph(int redraw, int clock, int bit);
16 int ClearGraph(int redraw);
17 //int DetectClock(int peak);
18 size_t getFromGraphBuf(uint8_t *buff);
19 int GetAskClock(const char str[], bool printAns, bool verbose);
20 int GetPskClock(const char str[], bool printAns, bool verbose);
21 uint8_t GetPskCarrier(const char str[], bool printAns, bool verbose);
22 uint8_t GetNrzClock(const char str[], bool printAns, bool verbose);
23 uint8_t GetFskClock(const char str[], bool printAns, bool verbose);
24 uint8_t fskClocks(uint8_t *fc1, uint8_t *fc2, uint8_t *rf1, bool verbose);
25 bool graphJustNoise(int *BitStream, int size);
26 void setGraphBuf(uint8_t *buff, size_t size);
27 void save_restoreGB(uint8_t saveOpt);
28
29 bool HasGraphData();
30 void DetectHighLowInGraph(int *high, int *low, bool addFuzz);
31
32 // Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample)
33 #define MAX_GRAPH_TRACE_LEN (40000 * 8 )
34
35 extern int GraphBuffer[MAX_GRAPH_TRACE_LEN];
36 extern int GraphTraceLen;
37 #endif
Impressum, Datenschutz