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