pn53x_usb.h
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 } usb_spec_t;
00031
00032 typedef struct {
00033 uint16_t idVendor;
00034 uint16_t idProduct;
00035 } usb_candidate_t;
00036
00037 nfc_device_t* pn53x_usb_connect(const nfc_device_desc_t* pndd,const char * target_name, int target_chip);
00038 void get_end_points(struct usb_device *dev, usb_spec_t* pus);
00039 void pn53x_usb_disconnect(nfc_device_t* pnd);
00040 bool pn53x_usb_transceive(const nfc_device_spec_t nds, const byte_t* pbtTx, const size_t szTxLen, byte_t* pbtRx, size_t* pszRxLen);
00041 bool pn53x_usb_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *pszDeviceFound,usb_candidate_t candidates[], int num_candidates, char * target_name);