#include <proxmark3.h>\r
#include <stdlib.h>\r
#include "apps.h"\r
+#include "legicrf.h"\r
#ifdef WITH_LCD\r
#include "fonts.h"\r
#include "LCD.h"\r
ModThenAcquireRawAdcSamples125k(c->ext1,c->ext2,c->ext3,c->d.asBytes);\r
break;\r
\r
+#ifdef WITH_ISO15693\r
case CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_15693:\r
AcquireRawAdcSamplesIso15693();\r
break;\r
+#endif\r
\r
case CMD_BUFF_CLEAR:\r
BufferClear();\r
break;\r
\r
+#ifdef WITH_ISO15693\r
case CMD_READER_ISO_15693:\r
ReaderIso15693(c->ext1);\r
break;\r
+#endif\r
\r
+ case CMD_READER_LEGIC_RF:\r
+ LegicRfReader();\r
+ break;\r
+\r
+#ifdef WITH_ISO15693\r
case CMD_SIMTAG_ISO_15693:\r
SimTagIso15693(c->ext1);\r
break;\r
+#endif\r
\r
+#ifdef WITH_ISO14443b\r
case CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_14443:\r
AcquireRawAdcSamplesIso14443(c->ext1);\r
break;\r
+#endif\r
\r
+#ifdef WITH_ISO14443b\r
case CMD_READ_SRI512_TAG:\r
ReadSRI512Iso14443(c->ext1);\r
break;\r
+#endif\r
\r
+#ifdef WITH_ISO14443a\r
case CMD_READER_ISO_14443a:\r
ReaderIso14443a(c->ext1);\r
break;\r
+#endif\r
\r
+#ifdef WITH_ISO14443b\r
case CMD_SNOOP_ISO_14443:\r
SnoopIso14443();\r
break;\r
+#endif\r
\r
+#ifdef WITH_ISO14443a\r
case CMD_SNOOP_ISO_14443a:\r
SnoopIso14443a();\r
break;\r
+#endif\r
\r
case CMD_SIMULATE_TAG_HF_LISTEN:\r
SimulateTagHfListen();\r
break;\r
\r
+#ifdef WITH_ISO14443b\r
case CMD_SIMULATE_TAG_ISO_14443:\r
SimulateIso14443Tag();\r
break;\r
-\r
+#endif\r
+ \r
+#ifdef WITH_ISO14443a\r
case CMD_SIMULATE_TAG_ISO_14443a:\r
SimulateIso14443aTag(c->ext1, c->ext2); // ## Simulate iso14443a tag - pass tag type & UID\r
break;\r
+#endif\r
+\r
+ case CMD_SIMULATE_TAG_LEGIC_RF:\r
+ LegicRfSimulate();\r
+ break;\r
\r
case CMD_MEASURE_ANTENNA_TUNING:\r
MeasureAntennaTuning();\r
case CMD_SET_LF_DIVISOR:\r
FpgaSendCommand(FPGA_CMD_SET_DIVISOR, c->ext1);\r
break;\r
+ case CMD_SET_ADC_MUX:\r
+ switch(c->ext1) {\r
+ case 0: SetAdcMuxFor(GPIO_MUXSEL_LOPKD); break;\r
+ case 1: SetAdcMuxFor(GPIO_MUXSEL_LORAW); break;\r
+ case 2: SetAdcMuxFor(GPIO_MUXSEL_HIPKD); break;\r
+ case 3: SetAdcMuxFor(GPIO_MUXSEL_HIRAW); break;\r
+ }\r
+ break;\r
case CMD_VERSION:\r
SendVersion();\r
break;\r