pn53x_usb.h

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