MFC串口通信的同步实现

上传者: lluor | 上传时间: 2023-03-13 10:03:43 | 文件大小: 1.8MB | 文件类型: RAR
利用同步模式进行串口通信,适用于一问一答类型的通信机制,可设置超时。例子简单实用,提供了open close recv send 函数, dlg.cpp中提供了调用方式,可供参考。本代码并非利用CSerialPort.cpp。 对话框上的两个按钮响应函数中,提供了各函数调用方式。

文件下载

资源详情

[{"title":"( 31 个子文件 1.8MB ) MFC串口通信的同步实现","children":[{"title":"SYNCTEST","children":[{"title":"SYNCTEST.h <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"SYNCTESTDlg.h <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"SYNCTEST.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"SYNCTEST.rc2 <span style='color:#111;'> 400B </span>","children":null,"spread":false}],"spread":true},{"title":"SYNCTESTDlg.cpp <span style='color:#111;'> 6.41KB </span>","children":null,"spread":false},{"title":"SYNCTEST.dsw <span style='color:#111;'> 524B </span>","children":null,"spread":false},{"title":"SYNCTEST.cpp <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"SYNCTEST.APS <span style='color:#111;'> 34.86KB </span>","children":null,"spread":false},{"title":"SYNCTEST.opt <span style='color:#111;'> 49.50KB </span>","children":null,"spread":false},{"title":"SYNCTEST.ncb <span style='color:#111;'> 49.00KB </span>","children":null,"spread":false},{"title":"SYNCTEST.clw <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"SYNCTEST.dsp <span style='color:#111;'> 4.21KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 210B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 824B </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"Comm.h <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"SYNCTEST.rc <span style='color:#111;'> 5.28KB </span>","children":null,"spread":false},{"title":"Comm.cpp <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"StdAfx.obj <span style='color:#111;'> 103.52KB </span>","children":null,"spread":false},{"title":"SYNCTESTDlg.obj <span style='color:#111;'> 31.27KB </span>","children":null,"spread":false},{"title":"SYNCTEST.pch <span style='color:#111;'> 5.24MB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 209.00KB </span>","children":null,"spread":false},{"title":"SYNCTEST.res <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false},{"title":"Comm.obj <span style='color:#111;'> 15.13KB </span>","children":null,"spread":false},{"title":"SYNCTEST.exe <span style='color:#111;'> 108.07KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 356.00KB </span>","children":null,"spread":false},{"title":"SYNCTEST.pdb <span style='color:#111;'> 401.00KB </span>","children":null,"spread":false},{"title":"SYNCTEST.ilk <span style='color:#111;'> 202.86KB </span>","children":null,"spread":false},{"title":"SYNCTEST.obj <span style='color:#111;'> 13.96KB </span>","children":null,"spread":false}],"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false},{"title":"SYNCTEST.plg <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明