diff options
Diffstat (limited to 'openpicc/application/decoder_miller.c')
-rw-r--r-- | openpicc/application/decoder_miller.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/openpicc/application/decoder_miller.c b/openpicc/application/decoder_miller.c index ca0a192..8f2aedb 100644 --- a/openpicc/application/decoder_miller.c +++ b/openpicc/application/decoder_miller.c @@ -46,14 +46,21 @@ #include "openpicc.h" #include "dbgu.h" #include "decoder.h" +#include "iso14443_layer3a.h" - +#ifdef FOUR_TIMES_OVERSAMPLING #define OVERSAMPLING_RATE 4 /* definitions for four-times oversampling */ #define SEQ_X 0x4 #define SEQ_Y 0x0 #define SEQ_Z 0x1 +#else +#define OVERSAMPLING_RATE 2 +#define SEQ_X 0x2 +#define SEQ_Y 0x0 +#define SEQ_Z 0x1 +#endif /* decode a single sampled bit */ static inline u_int8_t miller_decode_sampled_bit(u_int32_t sampled_bit) |