SendCommand(&c);\r
}\r
\r
+static void CmdHi14amifare(char *str)\r
+{\r
+ UsbCommand c={CMD_READER_MIFARE, {strtol(str, NULL, 0), 0, 0}};\r
+ SendCommand(&c);\r
+}\r
+\r
static void CmdHi15reader(char *str)\r
{\r
UsbCommand c={CMD_READER_ISO_15693, {strtol(str, NULL, 0), 0, 0}};\r
SendCommand(&c);\r
}\r
\r
-static void CmdLegicRfSim(char *str)\r
-{\r
- UsbCommand c={CMD_SIMULATE_TAG_LEGIC_RF};\r
- SendCommand(&c);\r
-}\r
-\r
static void CmdLegicRfRead(char *str)\r
{\r
UsbCommand c={CMD_READER_LEGIC_RF};\r
{"grid", CmdGrid, 1, "<x> <y> -- overlay grid on graph window, use zero value to turn off either"},\r
{"hexsamples", CmdHexsamples, 0, "<blocks> -- Dump big buffer as hex bytes"},\r
{"hi14alist", CmdHi14alist, 0, "List ISO 14443a history"},\r
+ {"hi14amifare", CmdHi14amifare, 0, "Read out sector 0 parity error messages"},\r
{"hi14areader", CmdHi14areader, 0, "Act like an ISO14443 Type A reader"},\r
{"hi14asim", CmdHi14asim, 0, "<UID> -- Fake ISO 14443a tag"},\r
{"hi14asnoop", CmdHi14asnoop, 0, "Eavesdrop ISO 14443 Type A"},\r
{"indalademod", CmdIndalademod, 0, "['224'] -- Demodulate samples for Indala 64 bit UID (option '224' for 224 bit)"},\r
{"lcd", CmdLcd, 0, "<HEX command> <count> -- Send command/data to LCD"},\r
{"lcdreset", CmdLcdReset, 0, "Hardware reset LCD"},\r
- {"legicrfsim", CmdLegicRfSim, 0, "Start the LEGIC RF tag simulator"},\r
{"legicrfread", CmdLegicRfRead, 0, "Start the LEGIC RF reader"},\r
{"load", CmdLoad, 1, "<filename> -- Load trace (to graph window"},\r
{"locomread", CmdLoCommandRead, 0, "<off period> <'0' period> <'1' period> <command> ['h'] -- Modulate LF reader field to send command before read (all periods in microseconds) (option 'h' for 134)"},\r
if (c->cmd != CMD_DOWNLOADED_RAW_ADC_SAMPLES_125K) goto unexpected_response;\r
int i;\r
for(i=0; i<48; i++) sample_buf[i] = c->d.asBytes[i];\r
- printf("stored 48 samples\n");\r
received_command = c->cmd;\r
return;\r
default:\r