RTOS:windows ce:我可以在内核模式下执行 PID 控制循环的所有计算吗?
在Windows CE中,我可以在“内核模式”下完成PID(比例积分微分)控制循环的所有计算并避免使用“用户模式”吗?我将通过 TCP=IP 将数据传输到另一台机器以获得最终结果,以使系统保持在“内核模式”。我的理解是,从“内核模式”切换到“用户模式”以及反之亦然会花费时间..即 40us 往返。
In Windows CE, can I do all my calucation for a PID(Proportional-Integral-Derivative) control loop in "kernel mode" and avoid using "user mode"? I will transfering data over TCP=IP to another machine for the end result to keep the system in "kernel mode". My understanding is that switching from "kernel mode" to "user mode" and vice versa costs time..ie 40us round trip.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你可以做到这一点,你应该调用 SetKMode 函数将你的线程置于内核模式或内核模式。 CE 团队的这两篇博客文章中有更多详细信息: 什么是内核模式? 和 Windows CE API 调用内部。
I think you can do that, you should call SetKMode function to put your thread out or in of kernel mode. More details in these two blog posts from CE team: What is Kernel Mode? and Inside Windows CE API Calls.