#include <string.h>
#include <errno.h>
-#include <usb.h>
#include <librfid/rfid.h>
#include <librfid/rfid_reader.h>
#ifndef LIBRFID_FIRMWARE
+#include <usb.h>
static struct usb_device *dev;
static struct usb_dev_handle *hdl;
unsigned char reg,
unsigned char *value)
{
- return rc632_reg_write(rath, reg, value);
+ return rc632_reg_read(rath, reg, value);
}
unsigned char num_bytes,
unsigned char *buf)
{
- return rc632_reg_write(rath, num_bytes, buf);
+ return rc632_fifo_read(rath, num_bytes, buf);
}
static int openpcd_fifo_write(struct rfid_asic_transport_handle *rath,