Libusb中断传输回调
我正在开发一个实时控制系统,该系统以缓冲方式(用户模式程序)计算控制信号,并通过同步传输将阵列输出到 USB 设备。 USB设备通过中断传输报告执行进度,以便PC软件可以计算并推送下一个控制数组。
该软件基于原始 win32 api 运行,基于 C。 (C++ 仅用于程序中对时间不敏感的部分,例如界面、3D 模型...)。
我想知道是否有办法注册回调函数来响应中断传输?
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 transfer, 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解,虽然我们正在讨论中断传输,但USB设备仍然需要使用libusb_interrupt_transfer进行轮询:
摘自 https://www.beyondlogic.org/usbnutshell/usb4.shtml#Interrupt< /a>
From what I understand, although we are talking about interrupt transfers, the USB device still has to be polled using libusb_interrupt_transfer:
Excerpt from https://www.beyondlogic.org/usbnutshell/usb4.shtml#Interrupt