int
rc632_register_dump(struct rfid_asic_handle *handle, u_int8_t *buf)
{
int
rc632_register_dump(struct rfid_asic_handle *handle, u_int8_t *buf)
{
- for (i = 0; i <= 0x3f; i++) {
- ret = rc632_reg_read(handle, i, &buf[i]);
- // do we want error checks?
- }
- return 0;
-}
-
+ for (i = 0; i <= 0x3f; i++)
+ ret |= rc632_reg_read(handle, i, &buf[i]);
/* generic FIFO access functions (if no more efficient ones provided by
* transport driver) */
/* generic FIFO access functions (if no more efficient ones provided by
* transport driver) */
| rx_buf[0]);
/* copy the rest */
| rx_buf[0]);
/* copy the rest */
- if(rx_len)
- memcpy(&acf->uid_bits[tx_bytes-1], &rx_buf[1], rx_len-1);
+ if (rx_len)
+ memcpy(&acf->uid_bits[tx_bytes-1], &rx_buf[1], rx_len-1);
/* determine whether there was a collission */
ret = rc632_reg_read(handle, RC632_REG_ERROR_FLAG, &error_flag);
/* determine whether there was a collission */
ret = rc632_reg_read(handle, RC632_REG_ERROR_FLAG, &error_flag);