iso14a_clear_trace();\r
// iso14a_set_tracing(false);\r
\r
- iso14443a_setup();\r
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
LED_A_ON();\r
LED_B_OFF();\r
// clear trace
iso14a_clear_trace();
- iso14443a_setup();
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
LED_A_ON();
LED_B_OFF();
iso14a_clear_trace();\r
// iso14a_set_tracing(false);\r
\r
- iso14443a_setup();\r
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
LED_A_ON();\r
LED_B_OFF();\r
iso14a_clear_trace();
// iso14a_set_tracing(false);
- iso14443a_setup();
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
LED_A_ON();
LED_B_OFF();
LogTrace(uid, 4, 0, 0, TRUE);
LED_B_ON();
- cmd_send(CMD_ACK,isOK,0,0,dataoutbuf,64);
+ cmd_send(CMD_ACK,isOK,0,0,dataoutbuf,64);
//cmd_send(CMD_ACK,isOK,0,0,dataoutbuf+32, 32);
LED_B_OFF();
iso14a_clear_trace();\r
// iso14a_set_tracing(false);\r
\r
- iso14443a_setup();\r
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
LED_A_ON();\r
LED_B_OFF();\r
iso14a_clear_trace();
// iso14a_set_tracing(false);
- iso14443a_setup();
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
LED_A_ON();
LED_B_OFF();
iso14a_clear_trace();
// iso14a_set_tracing(false);
- iso14443a_setup();
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
LED_A_ON();
LED_B_OFF();
uint32_t auth1_time, auth2_time;\r
static uint16_t delta_time;\r
\r
- StartCountMifare();\r
-\r
// clear trace\r
iso14a_clear_trace();\r
iso14a_set_tracing(false);\r
\r
- iso14443a_setup();\r
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
LED_A_ON();\r
LED_C_OFF();\r
\r
\r
- while((GetCountMifare() & 0xffff0000) != 0x00010000); // wait for counter to reset and "warm up" \r
-\r
// statistics on nonce distance\r
if (calibrate) { // for first call only. Otherwise reuse previous calibration\r
LED_B_ON();\r
iso14a_clear_trace();\r
iso14a_set_tracing(TRUE);\r
\r
- iso14443a_setup();\r
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
LED_A_ON();\r
LED_B_OFF();\r
iso14a_clear_trace();\r
iso14a_set_tracing(false);\r
\r
- iso14443a_setup();\r
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
LED_A_ON();\r
LED_B_OFF();\r
iso14a_clear_trace();\r
iso14a_set_tracing(TRUE);\r
\r
- iso14443a_setup();\r
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
LED_A_ON();\r
LED_B_OFF();\r
iso14a_clear_trace();\r
iso14a_set_tracing(TRUE);\r
\r
- iso14443a_setup();\r
+ iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
LED_A_ON();\r
LED_B_OFF();\r
\r
while (true) {\r
if (workFlags & 0x02) {\r
- ReaderTransmitBitsPar(wupC1,7,0, NULL);\r
+ ReaderTransmitBitsPar(wupC1,7,0, NULL);\r
if(!ReaderReceive(receivedAnswer) || (receivedAnswer[0] != 0x0a)) {\r
if (MF_DBGLEVEL >= 1) Dbprintf("wupC1 error");\r
break;\r