diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-12-15 16:31:46 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-12-15 16:31:46 +0000 |
commit | 91d960e6945a1bb8e70e41d62fbb3be93b16f989 (patch) | |
tree | 3c63f308eb33e979e7ae919c961c87abcf9bc30a /openpicc/application/iso14443_layer3a.h | |
parent | 86c7c1ea486d01cb6f0cbd5f3bd8ab91e643489b (diff) |
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
Diffstat (limited to 'openpicc/application/iso14443_layer3a.h')
-rw-r--r-- | openpicc/application/iso14443_layer3a.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |