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