Using "usb_interrupt_read" usb.h
I've an application that comunicates with a PIC32 uC. I already have it running, but now i want to change the Qt application to trigger an interrupt when the PC receives USB data.
I'm using usb.h i think from libsub driver under linux 64 bit, the function i used since now to read is:
@int usb_bulk_read(usb_dev_handle *dev, int ep, short int *bytes, int size, int timeout);@
...but in the same library there's another function for interrupt readings:
@int usb_interrupt_read(usb_dev_handle *dev, int ep, char *bytes, int size, int timeout);@
I tried to use it but without success...Mi idea is to read the data only when the computer receives it, instead by polling.
Any idea or suggestion?
This question is outside this forum scope, you should rather ask it the libusb channel/forum/mailing list