void dummy_sgc (int clock, int startidx) {}
#ifndef ON_DEVICE
-# include "ui.h"
+# include "ui.h" // plotclock, plotclockstartindex
# include "cmdparser.h"
# include "cmddata.h"
# define prnt PrintAndLog
# define sgc SetGraphClock
-#else
- uint8_t g_debugMode=0;
-# define prnt dummy
-# define sgc dummy_sgc
-#endif
-
void SetGraphClock(int clock, int startidx){
PlotClock = clock;
PlockClockStartIndex = startidx;
}
+#else
+ uint8_t g_debugMode = 0;
+# define prnt dummy
+# define sgc dummy_sgc
+#endif
//test samples are not just noise
uint8_t justNoise(uint8_t *bits, size_t size) {
#include <stdbool.h> // for bool
#include <string.h> // for strcmp
#include <stdlib.h> // for
-#include "ui.h" // plotclock, plotclockstartindex
+
//generic
+#ifndef ON_DEVICE
void SetGraphClock(int clock, int startidx);
+#endif
uint8_t justNoise(uint8_t *bits, size_t size);
size_t addParity(uint8_t *BitSource, uint8_t *dest, uint8_t sourceLen, uint8_t pLen, uint8_t pType);
int askdemod(uint8_t *BinStream, size_t *size, int *clk, int *invert, int maxErr, uint8_t amp, uint8_t askType);