开发者

Libusb interrupt transfer callback

I'am working on a real-time control system that calculates the control signals in a buffered fashion (a user-mode program) and outputs to the usb device the array through isochronous transfers. The usb device them reports the execution progress through interrupt t开发者_运维知识库ransfer, so that pc software can then calculate and push the next control array.

The software runs based on raw win32 api, C based. (C++ used only on not time sensitive parts of the program, such as interface, 3D models...).

I would like to know if there is a way to register a callback function in response to a interrupt transfer?


From what I understand, although we are talking about interrupt transfers, the USB device still has to be polled using libusb_interrupt_transfer:

Interrupt transfers are typically non-periodic, small device "initiated" communication requiring bounded latency. An Interrupt request is queued by the device until the host polls the USB device asking for data.

Excerpt from https://www.beyondlogic.org/usbnutshell/usb4.shtml#Interrupt

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜