WinCE 的 C 串口库/头文件

发布于 2024-09-14 19:57:35 字数 178 浏览 1 评论 0原文

我是WinCE应用程序编程的新手。但起步并没有想象中那么顺利。我找不到可供学习的代码示例和教程。我找不到关于WinCE编程的书。 winCE 的所有库和头文件都与 windows (WIN32) 相同吗?

我正在用C编程。我想使用串口通信。但我找不到相关的图书馆。串口控制/通信使用哪个库/头文件?

提前致谢。

I am a newbie in WinCE application programming. But the starting is not as smooth as expected. I could not find code examples, tutorials to learn from. I could not find a book on WinCE programming. Are all the libraries and header files for winCE same as for windows (WIN32)?

I am programming in C. I want to use serial port communication. But I could not find the library for that. Which library/header file is used for serial port control/communication?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忆伤 2024-09-21 19:57:35

所需的 API 调用与桌面 Win32 相同(除了不支持重叠 I/O)。您首先使用 CreateFile 打开端口,使用 SetCommSTate 调整速率和奇偶校验等内容,然后使用 ReadFile 和 WriteFile 进行 I/O。

这是一篇非常适用的 CodeProject 文章

The required API calls are identical to desktop Win32 (with the eception that overlapped I/O is not supported). You've start with CreateFile to open the port, SetCommSTate to adjust things like rate and parity, then use ReadFile and WriteFile for the I/O.

Here's a CodeProject article that is very applicable.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文