summaryrefslogtreecommitdiff
path: root/openpicc/application/iso14443_layer3a.h
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-09 06:00:31 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-09 06:00:31 +0000
commit61ae0602b252c367c6c5514b113fdf9bacdddc0b (patch)
treed09c4713e89314a9f97141cf60a82c73585fb71c /openpicc/application/iso14443_layer3a.h
parent4077ce43189067b2498b9fd0e306052ea18ed3fb (diff)
Count and print late frames
Make load modulation level changeable on the fly Better fdt calculation and ajustable fdt offset git-svn-id: https://svn.openpcd.org:2342/trunk@378 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/iso14443_layer3a.h')
-rw-r--r--openpicc/application/iso14443_layer3a.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/openpicc/application/iso14443_layer3a.h b/openpicc/application/iso14443_layer3a.h
index d398d1f..2b39d4e 100644
--- a/openpicc/application/iso14443_layer3a.h
+++ b/openpicc/application/iso14443_layer3a.h
@@ -18,9 +18,15 @@ enum ISO14443_STATES {
/******************** RX ************************************/
/* measured TF->FIQ->SSC TX start delay (~3.480us) in carrier cycles */
#define TF_FIQ_SSC_DELAY 47
+//#define TF_FIQ_SSC_DELAY 40
+#define FALLING_EDGE_DETECTION_DELAY 12
+extern volatile int fdt_offset;
/* standard derived magic values */
-#define ISO14443A_FDT_SHORT_1 (1236-TF_FIQ_SSC_DELAY)
-#define ISO14443A_FDT_SHORT_0 (1172-TF_FIQ_SSC_DELAY)
+#define ISO14443A_FDT_SLOTLEN 128
+#define ISO14443A_FDT_OFFSET_1 84
+#define ISO14443A_FDT_OFFSET_0 20
+#define ISO14443A_FDT_SHORT_1 (ISO14443A_FDT_SLOTLEN*9 + ISO14443A_FDT_OFFSET_1 -FALLING_EDGE_DETECTION_DELAY +fdt_offset -TF_FIQ_SSC_DELAY)
+#define ISO14443A_FDT_SHORT_0 (ISO14443A_FDT_SLOTLEN*9 + ISO14443A_FDT_OFFSET_0 -FALLING_EDGE_DETECTION_DELAY +fdt_offset -TF_FIQ_SSC_DELAY)
#ifdef FOUR_TIMES_OVERSAMPLING
/* definitions for four-times oversampling */
personal git repositories of Harald Welte. Your mileage may vary