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/ssc_picc.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openpicc/application/ssc_picc.h') diff --git a/openpicc/application/ssc_picc.h b/openpicc/application/ssc_picc.h index a01b16d..9600bab 100644 --- a/openpicc/application/ssc_picc.h +++ b/openpicc/application/ssc_picc.h @@ -21,6 +21,7 @@ enum ssc_mode { SSC_MODE_NONE, SSC_MODE_14443A_SHORT, SSC_MODE_14443A_STANDARD, + SSC_MODE_14443A, SSC_MODE_14443B, SSC_MODE_EDGE_ONE_SHOT, SSC_MODE_CONTINUOUS, @@ -51,6 +52,11 @@ extern int ssc_get_metric(ssc_metric metric); #define SSC_RX_BUFFER_SIZE 2048 #define SSC_DMA_BUFFER_COUNT 4 +#if SSC_RX_BUFFER_SIZE < ISO14443A_MAX_RX_FRAME_SIZE_IN_BITS +#undef SSC_RX_BUFFER_SIZE +#define SSC_RX_BUFFER_SIZE ISO14443A_MAX_RX_FRAME_SIZE_IN_BITS +#endif + typedef enum { FREE=0, /* Buffer is free */ PENDING, /* Buffer has been given to the DMA controller and is currently being filled */ -- cgit v1.2.3