sed s/cm5121/x501/ - need to be hacked now (hopefully there is a way to access regist...
[rfid/librfid.git] / include / librfid / rfid.h
1 #ifndef _RFID_H
2 #define _RFID_H
3
4 #include <stdio.h>
5
6 #ifdef __LIBRFID__
7
8 enum rfid_frametype {
9         RFID_14443A_FRAME_REGULAR,
10         RFID_14443B_FRAME_REGULAR,
11         RFID_MIFARE_FRAME,
12 };
13
14 #if 0
15 #define DEBUGP(x, args ...) fprintf(stderr, "%s(%d):%s: " x, __FILE__, __LINE__, __FUNCTION__, ## args)
16 #define DEBUGPC(x, args ...) fprintf(stderr, x, ## args)
17 #else
18 #define DEBUGP(x, args ...)
19 #define DEBUGPC(x, args ...)
20 #endif
21
22 extern const char *rfid_hexdump(const void *data, unsigned int len);
23
24 #ifndef ARRAY_SIZE
25 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
26 #endif
27
28 #endif /* __LIBRFID__ */
29
30 int rfid_init(unsigned int id);
31
32 #endif /* _RFID_H */