]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/data_operations.h
First stab at new graphing; dual buffers, immediate results
[proxmark3-svn] / client / data_operations.h
diff --git a/client/data_operations.h b/client/data_operations.h
new file mode 100644 (file)
index 0000000..88da1bd
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef DATA_OPERATIONS_H
+#define DATA_OPERATIONS_H
+
+#include <string.h>
+#include <stdint.h>
+
+// Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample)
+#define MAX_GRAPH_TRACE_LEN (40000 * 8 )
+
+extern int GraphBuffer[MAX_GRAPH_TRACE_LEN];
+extern int GraphTraceLen;
+extern int s_Buff[MAX_GRAPH_TRACE_LEN];
+
+
+int autoCorr(const int* in, int *out, size_t len, int window);
+int directionalThreshold(const int* in, int *out, size_t len, int8_t up, int8_t down);
+#endif // DATA_OPERATIONS_H
Impressum, Datenschutz