8 #include <librfid/rfid_system.h>
11 RFID_14443A_FRAME_REGULAR,
12 RFID_14443B_FRAME_REGULAR,
20 #ifdef LIBRFID_FIRMWARE
21 extern void debugp(const char *format, ...);
22 extern const char *hexdump(const void *data, unsigned int len);
23 #define rfid_hexdump(x, y) hexdump(x, y)
24 #define DEBUGP(x, args ...) debugp("%s(%d):%s: " x, __FILE__, __LINE__, __FUNCTION__, ## args)
25 #define DEBUGPC(x, args ...) debugp(x, ## args)
26 #else /* LIBRFID_FIRMWARE */
27 extern const char *rfid_hexdump(const void *data, unsigned int len);
28 #define DEBUGP(x, args ...) fprintf(stderr, "%s(%d):%s: " x, __FILE__, __LINE__, __FUNCTION__, ## args)
29 #define DEBUGPC(x, args ...) fprintf(stderr, x, ## args)
30 #endif /* LIBRFID_FIRMWARE */
33 extern const char *rfid_hexdump(const void *data, unsigned int len);
35 #define DEBUGP(x, args ...)
36 #define DEBUGPC(x, args ...)
42 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
45 #endif /* __LIBRFID__ */