]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - client/graph.h
fix inconsistent spacing within functions
[proxmark3-svn] / client / graph.h
... / ...
CommitLineData
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
15void AppendGraph(int redraw, int clock, int bit);
16int ClearGraph(int redraw);
17//int DetectClock(int peak);
18size_t getFromGraphBuf(uint8_t *buff);
19int GetClock(const char *str, int peak, int verbose);
20int GetPskClock(const char *str, int peak, int verbose);
21int GetNrzClock(const char *str, int peak, int verbose);
22void setGraphBuf(uint8_t *buff, size_t size);
23
24bool HasGraphData();
25void DetectHighLowInGraph(int *high, int *low, bool addFuzz);
26
27// Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample)
28#define MAX_GRAPH_TRACE_LEN (40000 * 8 )
29
30extern int GraphBuffer[MAX_GRAPH_TRACE_LEN];
31extern int GraphTraceLen;
32#endif
Impressum, Datenschutz