11 typedef unsigned char u_int8_t;
12 typedef unsigned short u_int16_t;
13 typedef unsigned long u_int32_t;
14 typedef unsigned long long u_int64_t;
19 #include <librfid/rfid_system.h>
23 #ifdef LIBRFID_FIRMWARE
24 extern void debugp(const char *format, ...);
25 extern const char *hexdump(const void *data, unsigned int len);
26 #define rfid_hexdump(x, y) hexdump(x, y)
27 #define DEBUGP(x, args ...) debugp("%s(%d):%s: " x, __FILE__, __LINE__, __FUNCTION__, ## args)
28 #define DEBUGPC(x, args ...) debugp(x, ## args)
29 #else /* LIBRFID_FIRMWARE */
30 extern const char *rfid_hexdump(const void *data, unsigned int len);
31 #define DEBUGP(x, args ...) fprintf(stderr, "%s(%d):%s: " x, __FILE__, __LINE__, __FUNCTION__, ## args)
32 #define DEBUGPC(x, args ...) fprintf(stderr, x, ## args)
33 #endif /* LIBRFID_FIRMWARE */
38 extern const char *rfid_hexdump(const void *data, unsigned int len);
40 #define DEBUGP(x, args ...)
41 #define DEBUGPC(x, args ...)
47 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
50 #endif /* __LIBRFID__ */
62 RFID_14443A_FRAME_REGULAR,
63 RFID_14443B_FRAME_REGULAR,