]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/graph.h
9817d7762d7575714b994927a2bd7e0e2a452400
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
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
7 //-----------------------------------------------------------------------------
9 //-----------------------------------------------------------------------------
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 GetClock(const char *str
, int peak
, int verbose
);
20 int GetNRZpskClock(const char *str
, int peak
, int verbose
);
21 void setGraphBuf(uint8_t *buff
, size_t size
);
24 void DetectHighLowInGraph(int *high
, int *low
, bool addFuzz
);
26 // Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample)
27 #define MAX_GRAPH_TRACE_LEN (40000 * 8 )
29 extern int GraphBuffer
[MAX_GRAPH_TRACE_LEN
];
30 extern int GraphTraceLen
;