unsigned int l2_supported;
unsigned int proto_supported;
+ int (*get_api_version)(
+ struct rfid_reader_handle *h,
+ u_int8_t *version);
+
+ int (*get_environment)(
+ struct rfid_reader_handle *rh,
+ unsigned char num_bytes,
+ unsigned char *buf);
+
+ int (*set_environment)(
+ struct rfid_reader_handle *rh,
+ unsigned char num_bytes,
+ const unsigned char *buf);
+
+ int (*reset)(struct rfid_reader_handle *h);
+
int (*transceive)(struct rfid_reader_handle *h,
enum rfid_frametype frametype,
const unsigned char *tx_buf, unsigned int tx_len,
int (*auth)(struct rfid_reader_handle *h, u_int8_t cmd,
u_int32_t serno, u_int8_t block);
} mifare_classic;
- struct rfid_reader *next;
};
enum rfid_reader_id {