Home > Back-end >  Pass PC how to receive the USB data
Pass PC how to receive the USB data

Time:09-30

PC, please pass to receive the USB data, need to build a thread? PC is made of vs2010 (c + +), the usb driver is libusb - win32 this do.

Now is not understand the machine PC via the usb when uploading data how or how did get pass data to the PC.

CodePudding user response:

Libusb - win32 not have access to the USB data API function, directly call the corresponding function to obtain the data under a machine sent to come over

CodePudding user response:

You use libusb async function called read, if the return value is positive, is read data, otherwise it means no data,
Without a data synchronous read, like suspends reading function, but the libusb synchronization is not recommended to read,
  • Related