From 91d960e6945a1bb8e70e41d62fbb3be93b16f989 Mon Sep 17 00:00:00 2001 From: henryk Date: Sat, 15 Dec 2007 16:31:46 +0000 Subject: Prepare generic ISO 14443A reception mode (no short/standard distinction), prerequisite for proper frame handling and anticol, doesn't work yet git-svn-id: https://svn.openpcd.org:2342/trunk@390 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/iso14443_layer3a.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openpicc/application/iso14443_layer3a.h') diff --git a/openpicc/application/iso14443_layer3a.h b/openpicc/application/iso14443_layer3a.h index 26a8a2d..9b00ccb 100644 --- a/openpicc/application/iso14443_layer3a.h +++ b/openpicc/application/iso14443_layer3a.h @@ -18,6 +18,7 @@ enum ISO14443_STATES { /******************** RX ************************************/ #ifdef FOUR_TIMES_OVERSAMPLING /* definitions for four-times oversampling */ +#define ISO14443A_SAMPLE_LEN 4 /* Sample values for the REQA and WUPA short frames */ #define REQA 0x10410441 #define WUPA 0x04041041 @@ -39,6 +40,8 @@ enum ISO14443_STATES { #else /* definitions for two-times oversampling */ +#define ISO14443A_SAMPLE_LEN 2 + #define REQA 0x4929 #define WUPA 0x2249 @@ -46,6 +49,9 @@ enum ISO14443_STATES { #define ISO14443A_SOF_LEN 2 #define ISO14443A_SHORT_LEN 18 +#define ISO14443A_EOF_SAMPLE 0x00 +#define ISO14443A_EOF_LEN 4 + #endif /* A short frame should be received in one single SSC transfer */ @@ -66,6 +72,7 @@ enum ISO14443_STATES { #error ISO14443A_SHORT_LEN defined too big #endif +#define ISO14443A_MAX_RX_FRAME_SIZE_IN_BITS (256*9 +2) /******************** TX ************************************/ /* Magic delay, don't know where it comes from */ #define MAGIC_OFFSET -32 -- cgit v1.2.3