]>
Commit | Line | Data |
---|---|---|
a553f267 | 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 | ||
7fe9b0b7 | 11 | #ifndef GRAPH_H__ |
12 | #define GRAPH_H__ | |
d5a72d2f | 13 | #include <stdint.h> |
7fe9b0b7 | 14 | |
15 | void AppendGraph(int redraw, int clock, int bit); | |
16 | int ClearGraph(int redraw); | |
d5a72d2f | 17 | //int DetectClock(int peak); |
ba1a299c | 18 | size_t getFromGraphBuf(uint8_t *buff); |
f3bf15e4 | 19 | int GetAskClock(const char str[], bool printAns, bool verbose); |
20 | int GetPskClock(const char str[], bool printAns, bool verbose); | |
872e3d4d | 21 | uint8_t GetPskCarrier(const char str[], bool printAns, bool verbose); |
f3bf15e4 | 22 | uint8_t GetNrzClock(const char str[], bool printAns, bool verbose); |
23 | uint8_t GetFskClock(const char str[], bool printAns, bool verbose); | |
0f321d63 | 24 | uint8_t fskClocks(uint8_t *fc1, uint8_t *fc2, uint8_t *rf1, bool verbose, int *firstClockEdge); |
25 | //uint8_t fskClocks(uint8_t *fc1, uint8_t *fc2, uint8_t *rf1, bool verbose); | |
38cb7c71 | 26 | bool graphJustNoise(int *BitStream, int size); |
ba1a299c | 27 | void setGraphBuf(uint8_t *buff, size_t size); |
23f0a7d8 | 28 | void save_restoreGB(uint8_t saveOpt); |
7fe9b0b7 | 29 | |
a1557c4c | 30 | bool HasGraphData(); |
31 | void DetectHighLowInGraph(int *high, int *low, bool addFuzz); | |
32 | ||
f6d9fb17 MHS |
33 | // Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample) |
34 | #define MAX_GRAPH_TRACE_LEN (40000 * 8 ) | |
3fd7fce4 | 35 | #define GRAPH_SAVE 1 |
36 | #define GRAPH_RESTORE 0 | |
0644d5e3 | 37 | |
7fe9b0b7 | 38 | extern int GraphBuffer[MAX_GRAPH_TRACE_LEN]; |
39 | extern int GraphTraceLen; | |
b8fdac9e | 40 | extern int s_Buff[MAX_GRAPH_TRACE_LEN]; |
41 | ||
7fe9b0b7 | 42 | #endif |