How to handle a USB interface with a transfer type of "Interrupt"? #485
-
My USB display/touchscreen has the following endpoints
Now, I understand how to use the If I use Here is where my ignorance becomes apparent. Is it possible to set an If not, then I am left with polling the device (via SubmitAsyncRequest and a completion routine). What would be a suitable mechanism for this ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Have a look on how the HID driver is doing this. In fact the device is polled by the USB driver in the lower layer on RPi 1-3, there is no other way. The completion routine is only called, when data arrives. You can call the touchscreen ReportHandler from the USB completion routine. The USB HID touchscreen driver is doing this too, for example here. There is no other way to do this. |
Beta Was this translation helpful? Give feedback.
Have a look on how the HID driver is doing this. In fact the device is polled by the USB driver in the lower layer on RPi 1-3, there is no other way. The completion routine is only called, when data arrives.
You can call the touchscreen ReportHandler from the USB completion routine. The USB HID touchscreen driver is doing this too, for example here.
There is no other way to do this.