http://msdn.microsoft.com/en-us/library/ms810467.aspx
Allen Denver Microsoft Windows Developer Support
December 11, 1995
Applies to: Microsoft® Win32® Microsoft Windows®
Summary: Learn how serial communications in Microsoft Win32 is significantly different from serial communications in 16-bit Microsoft Windows. This article assumes a familiarity with the fundamentals of multiple threading and synchronization in Win32. In addition, a basic understanding of the Win32 heap functions is useful to fully comprehend the memory management methods used by the Multithreaded TTY (MTTTY) sample included with this article. (35 printed pages)
摘要:学习Win32串口通讯是怎样明显不同于Win16串口通讯,本文呈现一个成熟的win32多线程框架和同步机制。另外,对Win32堆函数有一个基本了解对于完全理解MTTTY(这篇文章包含的例子)中所用到的内存管理方法是有用的。
Contents
主要内容
总体概论
基本介绍
打开串口
串口读写
串口状态
串口设置
综合结论
参考文献
Overview
Serial communications in Microsoft® Win32® is significantly different from serial communications in 16-bit Microsoft Windows®. Those familiar with 16-bit serial communications functions will have to relearn many parts of the system to program serial communications properly. This article will help to accomplish this. Those unfamiliar with serial communications will find this article a helpful foundation for development efforts.
This article assumes you are familiar with the fundamentals of multiple threading and synchronization in Win32. In addition, a basic familiarity of the Win32 heap functions is useful to fully comprehend the memory management methods used by the sample, MTTTY, included with this article.
For more information regarding these functions, consult the Platform SDK documentation, the Microsoft Win32 SDK Knowledge Base, or the Microsoft Developer Network Library. Application programming interfaces (APIs) that control user interface features of windows and dialog boxes, though not discussed here, are useful to know in order to fully comprehend the sample provided with this article. Readers unfamiliar with general Windows programming practices should learn some of the fundamentals of general Windows programming before taking on serial communications. In other words, get your feet wet before diving in head first. (36 printed pages)
总体概论
Win32 串口通讯是明显不同于Win16的。为了正确编写串口通讯程序,那些熟悉的16位串口通讯函数将不得不重新学习操作系统相关部分。本文将会介绍这些。那些不熟悉串口通讯的将会发现本文是非常有帮助的对于开发工作而言。
浙公网安备 33010602011771号