From 96c3aa17bc0a4aa1e90d8332e9999d7634e705b4 Mon Sep 17 00:00:00 2001 From: laforge Date: Wed, 16 Aug 2006 00:20:28 +0000 Subject: add some definitions on ISO144443A frame waiting time git-svn-id: https://svn.gnumonks.org/trunk/librfid@1863 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/librfid/rfid_layer2_iso14443a.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/librfid/rfid_layer2_iso14443a.h b/include/librfid/rfid_layer2_iso14443a.h index 50a6f43..0ff84eb 100644 --- a/include/librfid/rfid_layer2_iso14443a.h +++ b/include/librfid/rfid_layer2_iso14443a.h @@ -75,6 +75,14 @@ enum iso14443a_state { ISO14443A_STATE_SELECTED, }; +/* Section 6.1.2 values in usec, rounded up to next usec */ +#define ISO14443A_FDT_ANTICOL_LAST1 92 /* 1236 / fc = 91.15 usec */ +#define ISO14443A_FDT_ANTICOL_LAST0 87 /* 1172 / fc = 86.43 usec */ + +#define ISO14443_CARRIER_FREQ 13560000 +#define ISO14443A_FDT_OTHER_LAST1(n) (((n*128+84)*1000000)/ISO14443_CARRIER_FREQ) + + #include struct rfid_layer2 rfid_layer2_iso14443a; -- cgit v1.2.3