#include <librfid/rfid.h>
#include <librfid/rfid_asic.h>
+#include <librfid/rfid_layer2.h>
struct rfid_asic_rc632_transport {
struct {
struct rfid_asic_rc632 {
struct {
- int (*power_up)(struct rfid_asic_handle *h);
- int (*power_down)(struct rfid_asic_handle *h);
+ int (*power)(struct rfid_asic_handle *h, int on);
int (*rf_power)(struct rfid_asic_handle *h, int on);
+ int (*init)(struct rfid_asic_handle *h, enum rfid_layer2_id);
int (*transceive)(struct rfid_asic_handle *h,
enum rfid_frametype,
const u_int8_t *tx_buf,
u_int64_t timeout,
unsigned int flags);
struct {
- int (*init)(struct rfid_asic_handle *h);
int (*transceive_sf)(struct rfid_asic_handle *h,
u_int8_t cmd,
struct iso14443a_atqa *atqa);
unsigned int speed);
} iso14443a;
struct {
- int (*init)(struct rfid_asic_handle *h);
- } iso14443b;
- struct {
- int (*init)(struct rfid_asic_handle *h);
int (*transceive_ac)(struct rfid_asic_handle *h,
- struct iso15693_anticol_cmd *acf,
- unsigned char *uuid,
- char *bit_of_col);
+ const struct iso15693_anticol_cmd *acf,
+ unsigned int acf_len,
+ struct iso15693_anticol_resp *resp,
+ unsigned int *rx_len, char *bit_of_col);
} iso15693;
struct {
int (*setkey)(struct rfid_asic_handle *h,