diff options
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 |