Some cosmetic changes (Juergen Heinzl)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1422 e0336214-984f-0b4b-a45f-81c69e1f0ede
This commit is contained in:
parent
3897fabc5c
commit
242b57ecd7
|
@ -23,7 +23,7 @@ struct rfid_asic_rc632_transport {
|
|||
|
||||
struct rfid_asic_handle;
|
||||
|
||||
struct iso14443a_atqua;
|
||||
struct iso14443a_atqa;
|
||||
struct iso14443a_anticol_cmd;
|
||||
|
||||
struct rfid_asic_rc632 {
|
||||
|
@ -137,7 +137,7 @@ int
|
|||
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;
|
||||
|
|
|
@ -59,7 +59,6 @@ static int init()
|
|||
{
|
||||
unsigned char buf[0x3f];
|
||||
unsigned char atr[64];
|
||||
unsigned
|
||||
int rc;
|
||||
|
||||
h = ct_reader_connect(0);
|
||||
|
|
|
@ -610,7 +610,7 @@ rc632_iso14443a_transcieve_sf(struct rfid_asic_handle *handle,
|
|||
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,
|
||||
|
|
|
@ -287,7 +287,7 @@ rc632_iso14443a_transcieve_sf(struct rfid_asic_handle *handle,
|
|||
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,
|
||||
|
|
|
@ -186,13 +186,14 @@ static int cm5121_transcieve_sf(struct rfid_reader_handle *rh,
|
|||
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);
|
||||
|
@ -236,7 +237,7 @@ static int cm5121_enable_rc632(struct rfid_asic_transport_handle *rath)
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue