]>
Commit | Line | Data |
---|---|---|
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 | ||
14 | void AppendGraph(int redraw, int clock, int bit); | |
15 | int ClearGraph(int redraw); | |
16 | int GetFromGraphBuf(uint8_t *buff); | |
17 | int GetClock(const char *str, int verbose); | |
18 | void SetGraphBuf(uint8_t *buff,int size); | |
19 | bool HasGraphData(); | |
20 | void DetectHighLowInGraph(int *high, int *low, bool addFuzz); | |
21 | ||
22 | #define MAX_GRAPH_TRACE_LEN (1024*128) | |
23 | extern int GraphBuffer[MAX_GRAPH_TRACE_LEN]; | |
24 | extern int GraphTraceLen; | |
25 | #endif |