]>
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> |
0d704c7f | 14 | #include "data_operations.h" |
7fe9b0b7 | 15 | |
16 | void AppendGraph(int redraw, int clock, int bit); | |
17 | int ClearGraph(int redraw); | |
d5a72d2f | 18 | //int DetectClock(int peak); |
ba1a299c | 19 | size_t getFromGraphBuf(uint8_t *buff); |
7fe9b0b7 | 20 | int GetClock(const char *str, int peak, int verbose); |
4118b74d | 21 | int GetNRZpskClock(const char *str, int peak, int verbose); |
ba1a299c | 22 | void setGraphBuf(uint8_t *buff, size_t size); |
7fe9b0b7 | 23 | |
a1557c4c | 24 | bool HasGraphData(); |
25 | void DetectHighLowInGraph(int *high, int *low, bool addFuzz); | |
26 | ||
0644d5e3 | 27 | |
7fe9b0b7 | 28 | #endif |