initial checkin of harald welte's original librfid project
[rfid/librfid.git] / 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 struct rfid_asic_transport {
9         char *name;
10         union {
11                 struct rfid_asic_rc632_transport rc632;
12         } priv;
13 };
14
15 struct rfid_asic_transport_handle {
16         void *data;             /* handle to stuff like even lower layers */
17
18         struct rfid_asic_transport *rat;
19 };
20
21
22 struct rfid_asic_handle {
23         struct rfid_asic_transport_handle *rath;
24         unsigned int fc;
25         unsigned int mtu;
26         unsigned int mru;
27
28         union {
29                 struct rfid_asic_rc632_handle rc632;
30                 //struct rfid_asic_rc531_handle rc531;
31         } priv;
32         struct rfid_asic *asic;
33 };
34
35
36 struct rfid_asic {
37         char *name;
38         unsigned int fc;                /* carrier frequency */
39         union {
40                 struct rfid_asic_rc632 rc632;
41                 //struct rfid_asic_rc531 rc531;
42         } priv;
43 };
44
45 #endif /* _RFID_ASIC_H */