8 #include <librfid/rfid_system.h>
10 //#define DEBUG_LIBRFID
14 #ifdef LIBRFID_FIRMWARE
15 extern void debugp(const char *format, ...);
16 extern const char *hexdump(const void *data, unsigned int len);
17 #define rfid_hexdump(x, y) hexdump(x, y)
18 #define DEBUGP(x, args ...) debugp("%s(%d):%s: " x, __FILE__, __LINE__, __FUNCTION__, ## args)
19 #define DEBUGPC(x, args ...) debugp(x, ## args)
20 #else /* LIBRFID_FIRMWARE */
21 extern const char *rfid_hexdump(const void *data, unsigned int len);
22 #define DEBUGP(x, args ...) fprintf(stderr, "%s(%d):%s: " x, __FILE__, __LINE__, __FUNCTION__, ## args)
23 #define DEBUGPC(x, args ...) fprintf(stderr, x, ## args)
24 #endif /* LIBRFID_FIRMWARE */
27 extern const char *rfid_hexdump(const void *data, unsigned int len);
29 #define DEBUGP(x, args ...)
30 #define DEBUGPC(x, args ...)
36 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
39 #endif /* __LIBRFID__ */
51 RFID_14443A_FRAME_REGULAR,
52 RFID_14443B_FRAME_REGULAR,