summaryrefslogtreecommitdiff
path: root/openpicc/application/tc_sniffer.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-10 09:52:17 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-10 09:52:17 +0000
commit7f0e2816144d21882c65aed8ce78b1e6e15cc144 (patch)
tree5399012adf7a1748dfb7f70be39821e1e7f10d52 /openpicc/application/tc_sniffer.c
parent9cde1dd08282554001b9619191a9d170de913dc5 (diff)
Further optimisation on the differential miller decoder, is now down to 1750 MCK/2 cycles for the short frame
git-svn-id: https://svn.openpcd.org:2342/trunk@448 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/tc_sniffer.c')
-rw-r--r--openpicc/application/tc_sniffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openpicc/application/tc_sniffer.c b/openpicc/application/tc_sniffer.c
index cc21a2f..943a2ad 100644
--- a/openpicc/application/tc_sniffer.c
+++ b/openpicc/application/tc_sniffer.c
@@ -191,6 +191,11 @@ static void timing_loop(void)
performance_set_checkpoint("end of first buffer");
handle_buffer(testdata2, sizeof(testdata2)/sizeof(testdata2[0]));
performance_stop_report();
+ DumpStringToUSB("Produced frame of "); DumpUIntToUSB(rx_frame.numbytes);
+ DumpStringToUSB(" bytes and "); DumpUIntToUSB(rx_frame.numbits);
+ DumpStringToUSB(" bits: "); DumpBufferToUSB((char*)rx_frame.data, rx_frame.numbytes + (rx_frame.numbits+7)/8 );
+ DumpStringToUSB(" CRC "); if(rx_frame.parameters.a.crc) DumpStringToUSB("OK"); else DumpStringToUSB("ERROR");
+ DumpStringToUSB("\n\r");
}
}
personal git repositories of Harald Welte. Your mileage may vary