- start 15693 implementation
[librfid] / include / rfid / rfid_layer2_iso15693.h
1 #ifndef _RFID_ISO15693_H
2 #define _RFID_ISO15693_H
3
4 #include <sys/types.h>
5
6 /* protocol definitions */
7
8 struct iso15693_handle;
9
10 struct iso15693_transport {
11         unsigned char   *name;
12
13         struct {
14                 int (*init)(struct iso15693_handle *handle);
15                 int (*fini)(struct iso15693_handle *handle);
16
17 #if 0
18                 int (*transcieve_sf)(struct iso14443a_handle *handle,
19                                      unsigned char cmd,
20                                      struct iso14443a_atqa *atqa);
21                 int (*transcieve_acf)(struct iso14443a_handle *handle,
22                                       struct iso14443a_anticol_cmd *acf,
23                                       unsigned int *bit_of_col);
24 #endif
25                 int (*transcieve)(struct iso15693_handle *handle,
26                                   const unsigned char *tx_buf,
27                                   unsigned int tx_len,
28                                   unsigned char *rx_buf,
29                                   unsigned int *rx_len);
30         } fn;
31
32         union {
33         } priv;
34 };
35
36 struct iso15693_handle {
37         unsigned int state;
38 };
39
40 enum iso15693_state {
41         ISO15693_STATE_ERROR,
42         ISO15693_STATE_NONE,
43 };
44
45 #include <rfid/rfid_layer2.h>
46 extern struct rfid_layer2 rfid_layer2_iso15693;
47
48 #endif /* _ISO15693_H */