CSerialPort-master

所属分类:串口编程
开发工具:Visual C++
文件大小:11KB
下载次数:24
上传日期:2016-01-13 00:24:39
上 传 者the小军
说明:  CSerialPort基类,已修改死锁bug。已在vs2010编译通过
(CSerialPort base class has been modified deadlock bug. It has been compiled through vs2010)

文件列表:
SerialPort.cpp (20933, 2014-12-18)
SerialPort.h (4929, 2014-12-18)

CSerialPort =========== First Version by Remon Spekreijse on 2000-02-08 http://www.codeguru.com/cpp/i-n/network/serialcommunications/article.php/c2483/A-communication-class-for-serial-port.htm Second Version by mrlong on 2007-12-25 https://code.google.com/p/mycom/ * 增加 ClosePort * 增加 WriteToPort 两个方法 * 增加 SendData 与 RecvData 方法 by liquanhai on 2011-11-04 http://blog.csdn.net/liquanhai/article/details/4955253 * 增加 ClosePort 中交出控制权,防止死锁问题 by liquanhai on 2011-11-06 http://blog.csdn.net/liquanhai/article/details/6941574 * 增加 ReceiveChar 中防止线程死锁 by viruscamp on 2013-12-04 https://github.com/viruscamp/CSerialPort * 增加 IsOpen 判断是否打开 * 修正 InitPort 中 parity Odd Even 参数取值错误 * 修改 InitPort 中 portnr 取值范围,portnr>9 时特殊处理 * 取消对 MFC 的依赖,使用 HWND 替代 CWnd,使用 win32 thread 函数而不是 MFC 的 * 增加用户消息编号自定义,方法来自 CnComm by liquanhai on 2014-12-18 * 增加一些处理措施,主要是对减少CPU占用率

近期下载者

相关文件


收藏者