4 #include <rfid/rfid_asic.h>
5 #include <rfid/rfid_layer2_iso14443a.h>
7 struct rfid_reader_handle;
12 int (*transcieve)(struct rfid_reader_handle *h,
13 const unsigned char *tx_buf, unsigned int tx_len,
14 unsigned char *rx_buf, unsigned int *rx_len,
15 u_int64_t timeout, unsigned int flags);
16 struct rfid_reader_handle * (*open)(void *data);
17 void (*close)(struct rfid_reader_handle *h);
19 struct rfid_14443a_reader {
20 int (*init)(struct rfid_reader_handle *h);
21 int (*transcieve_sf)(struct rfid_reader_handle *h,
23 struct iso14443a_atqa *atqa);
24 int (*transcieve_acf)(struct rfid_reader_handle *h,
25 struct iso14443a_anticol_cmd *cmd,
26 unsigned int *bit_of_col);
29 struct rfid_14443b_reader {
30 int (*init)(struct rfid_reader_handle *rh);
33 struct rfid_15693_reader {
34 int (*init)(struct rfid_reader_handle *rh);
36 struct rfid_reader *next;
44 enum rfid_reader_14443a_speed {
45 RFID_READER_SPEED_106K,
46 RFID_READER_SPEED_212K,
47 RFID_READER_SPEED_424K,
48 RFID_READER_SPEED_848K,
51 struct rfid_reader_handle {
52 struct rfid_asic_handle *ah;
57 struct rfid_reader *reader;