struct rfid_asic_handle;
-struct iso14443a_atqua;
+struct iso14443a_atqa;
struct iso14443a_anticol_cmd;
struct rfid_asic_rc632 {
rc632_register_dump(struct rfid_asic_handle *handle, unsigned char *buf);
-//struct rfid_asic_handle * rc632_open(struct rc632_transport *transport, void *data);
+struct rfid_asic_handle * rc632_open(struct rfid_asic_transport_handle *th);
extern struct rfid_asic rc632;
return 0;
}
-/* trasncieve regular frame */
+/* transcieve regular frame */
static int
rc632_iso14443a_transcieve(struct rfid_asic_handle *handle,
const unsigned char *tx_buf, unsigned int tx_len,
return 0;
}
-/* trasncieve regular frame */
+/* transcieve regular frame */
static int
rc632_iso14443a_transcieve(struct rfid_asic_handle *handle,
const unsigned char *tx_buf, unsigned int tx_len,
unsigned char cmd, struct iso14443a_atqa *atqa)
{
return rh->ah->asic->priv.rc632.fn.iso14443a.transcieve_sf(rh->ah,
- cmd,
- (unsigned char *) atqa);
+ cmd,
+ atqa);
}
static int
-cm5121_transcieve_acf(struct rfid_reader_handle *rh, struct iso14443a_anticol_cmd *cmd,
- unsigned int *bit_of_col)
+cm5121_transcieve_acf(struct rfid_reader_handle *rh,
+ struct iso14443a_anticol_cmd *cmd,
+ unsigned int *bit_of_col)
{
return rh->ah->asic->priv.rc632.fn.iso14443a.transcieve_acf(rh->ah,
cmd, bit_of_col);
unsigned int rx_len = sizeof(rx_buf);
PC_to_RDR_Escape(rath->data, tx_buf, 1, rx_buf, &rx_len);
- printf("received %d bytes from 01 command\n", rx_len);
+ printf("received %u bytes from 01 command\n", rx_len);
return 0;
}