Go to the documentation of this file.00001
00024 #include <usb.h>
00025
00026 typedef struct {
00027 usb_dev_handle *pudh;
00028 uint32_t uiEndPointIn;
00029 uint32_t uiEndPointOut;
00030 uint32_t wMaxPacketSize;
00031 } usb_spec_t;
00032
00033 typedef struct {
00034 uint16_t idVendor;
00035 uint16_t idProduct;
00036 } usb_candidate_t;
00037
00038 nfc_device_t *pn53x_usb_connect (const nfc_device_desc_t * pndd, const char *target_name, int target_chip);
00039 void get_end_points (struct usb_device *dev, usb_spec_t * pus);
00040 void pn53x_usb_disconnect (nfc_device_t * pnd);
00041 bool pn53x_usb_transceive (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTx, byte_t * pbtRx,
00042 size_t * pszRx);
00043 bool pn53x_usb_list_devices (nfc_device_desc_t pnddDevices[], size_t szDevices, size_t * pszDeviceFound,
00044 usb_candidate_t candidates[], int num_candidates, char *target_name);