int ToSendMax;\r
static int ToSendBit;\r
\r
+
+void BufferClear(void)
+{
+ memset(BigBuf,0,sizeof(BigBuf));
+ DbpString("Buffer cleared");
+}
+
void ToSendReset(void)\r
{\r
ToSendMax = -1;\r
case CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_15693:\r
AcquireRawAdcSamplesIso15693();\r
break;\r
+
+ case CMD_BUFF_CLEAR:
+ BufferClear();
+ break;
\r
case CMD_READER_ISO_15693:\r
ReaderIso15693(c->ext1);\r
#define CMD_DEBUG_PRINT_BYTES 0x0102\r
#define CMD_LCD_RESET 0x0103\r
#define CMD_LCD 0x0104\r
+#define CMD_BUFF_CLEAR 0x0105
\r
// For low-frequency tags\r
#define CMD_ACQUIRE_RAW_BITS_TI_TYPE 0x0200\r
SendCommand(&c, FALSE);\r
}\r
\r
+static void CmdBuffClear(char *str)\r
+{\r
+ UsbCommand c;\r
+ c.cmd = CMD_BUFF_CLEAR;\r
+ SendCommand(&c, FALSE);\r
+ CmdClearGraph(TRUE);\r
+}\r
\r
static void CmdQuit(char *str)\r
{\r
"autocorr", CmdAutoCorr,1, "<window length> -- Autocorrelation over window",\r
"bitsamples", CmdBitsamples,0, " Get raw samples as bitstring",\r
"bitstream", Cmdbitstream,1, "[clock rate] -- Convert waveform into a bitstream",\r
+ "buffclear", CmdBuffClear,0, " Clear sample buffer and graph window",\r
"dec", CmdDec,1, " Decimate samples",\r
"detectclock", Cmddetectclockrate,1, " Detect clock rate",\r
"em410xsim", CmdEM410xsim,1, "<UID> -- Simulate EM410x tag",\r
extern int offline;\r
\r
// command.cpp\r
+static void CmdBuffClear(char *str);\r
static void GetFromBigBuf(BYTE *dest, int bytes);\r
static void CmdReset(char *str);\r
static void CmdQuit(char *str);\r