summaryrefslogtreecommitdiff
path: root/openpicc/application/iso14443.h
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-14 04:55:15 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-14 04:55:15 +0000
commite2e37bea66206adefbb2fc97fcbfb71c1a3cfbe7 (patch)
tree8e1edc0418be46c82e59e5782c9534ebf3d5651c /openpicc/application/iso14443.h
parent9615190a75ab0304d37701e97947ffe36be2d345 (diff)
Add T/C based receiver code with integrated miller decoder
Integrate T/C receiver into iso14443 layer 2a Add state field to iso14443_frame, rename ssc buffer state constants Sniffer seems to work with the new code git-svn-id: https://svn.openpcd.org:2342/trunk@452 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/iso14443.h')
-rw-r--r--openpicc/application/iso14443.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/openpicc/application/iso14443.h b/openpicc/application/iso14443.h
index d3439d1..a2d7458 100644
--- a/openpicc/application/iso14443.h
+++ b/openpicc/application/iso14443.h
@@ -75,8 +75,17 @@
#define MAXIMUM_FRAME_SIZE 256
#define ISO14443A_MAX_RX_FRAME_SIZE_IN_BITS (MAXIMUM_FRAME_SIZE*9 +2)
+typedef enum {
+ FRAME_FREE=0, /* Frame is free */
+ FRAME_PENDING, /* Frame is currently filled by Rx */
+ FRAME_FULL, /* Frame has been filled by Rx */
+ FRAME_PROCESSING,/* The frame is currently processed by the consumer */
+} iso14443_frame_state_t;
+
+
typedef struct {
enum { TYPE_A, TYPE_B } type;
+ iso14443_frame_state_t state;
union {
struct {
enum { SHORT_FRAME, STANDARD_FRAME, AC_FRAME } format;
personal git repositories of Harald Welte. Your mileage may vary