fix more compiler warnings, based on a patch by Rainer Keller
[librfid] / include / librfid / rfid_asic.h
1 #ifndef _RFID_ASIC_H
2 #define _RFID_ASIC_H
3
4 enum rfid_frametype;
5
6 #include <librfid/rfid_asic_rc632.h>
7
8 /* a low-level transport, over which the ASIC layer can talk to its ASIC */
9 struct rfid_asic_transport {
10         char *name;
11         union {
12                 struct rfid_asic_rc632_transport rc632;
13         } priv;
14 };
15
16 /* An instance handle to 'struct rfid_asic_transport' */
17 struct rfid_asic_transport_handle {
18         void *data;             /* handle to stuff like even lower layers */
19
20         const struct rfid_asic_transport *rat;
21 };
22
23 /* Some implementation-specific data.  A reader will specify one of these for
24  * ASIC-specific parameters such as e.g. RC632 mod conductance */
25
26 struct rfid_asic_implementation {
27         union {
28                 struct rfid_asic_rc632_impl rc632;
29         } priv;
30 };
31
32 struct rfid_asic_handle {
33         struct rfid_asic_transport_handle *rath;
34         unsigned int fc;
35         unsigned int mtu;
36         unsigned int mru;
37
38         union {
39                 struct rfid_asic_rc632_handle rc632;
40                 //struct rfid_asic_rc531_handle rc531;
41         } priv;
42         struct rfid_asic *asic;
43 };
44
45
46 struct rfid_asic {
47         char *name;
48         unsigned int fc;                /* carrier frequency */
49         union {
50                 struct rfid_asic_rc632 rc632;
51                 //struct rfid_asic_rc531 rc531;
52         } priv;
53 };
54
55 #endif /* _RFID_ASIC_H */