简单的C++串口示例

上传者: QbilieveQ | 上传时间: 2024-06-04 15:28:21 | 文件大小: 71.84MB | 文件类型: 7Z
使用编写的串口类文件,实现简单的C++串口通信MFC程序,可以实现可用串口检测,串口属性配置,开启关闭串口,通过回调函数将串口byte数据传递到其他类成员函数中使用

文件下载

资源详情

[{"title":"( 66 个子文件 71.84MB ) 简单的C++串口示例","children":[{"title":"SerialPortDemo","children":[{"title":"SerialPortDemo.sln <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":".vs","children":[{"title":"SerialPortDemo","children":[{"title":"v16","children":[{"title":"Browse.VC.db <span style='color:#111;'> 72.32MB </span>","children":null,"spread":false},{"title":".suo <span style='color:#111;'> 33.00KB </span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"a4f61afb22289b5e.ipch <span style='color:#111;'> 122.31MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"SerialPortDemo","children":[{"title":"framework.h <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"SerialPortDemo.cpp <span style='color:#111;'> 2.93KB </span>","children":null,"spread":false},{"title":"pch.h <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"SerialPortDemo.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false},{"title":"SerialPortDemo.rc2 <span style='color:#111;'> 684B </span>","children":null,"spread":false}],"spread":true},{"title":"SerialPortDemoDlg.h <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"SerialPortDemo.vcxproj.user <span style='color:#111;'> 240B </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 299B </span>","children":null,"spread":false},{"title":"SerialPortDemo.vcxproj.filters <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"SerialPortDemo.h <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"pch.cpp <span style='color:#111;'> 158B </span>","children":null,"spread":false},{"title":"SerialPortDemo.vcxproj <span style='color:#111;'> 10.29KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"SerialPort.cpp <span style='color:#111;'> 9.53KB </span>","children":null,"spread":false},{"title":"SerialPortDemo.rc <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false},{"title":"SerialPortDemo.aps <span style='color:#111;'> 106.92KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"SerialPortDemo.res <span style='color:#111;'> 68.39KB </span>","children":null,"spread":false},{"title":"SerialPortDemo.tlog","children":[{"title":"CL.write.1.tlog <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 125.24KB </span>","children":null,"spread":false},{"title":"rc.write.1.tlog <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"rc.read.1.tlog <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"SerialPortDemo.lastbuildstate <span style='color:#111;'> 178B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"rc.command.1.tlog <span style='color:#111;'> 470B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 6.62KB </span>","children":null,"spread":false}],"spread":false},{"title":"SerialPort.obj <span style='color:#111;'> 206.28KB </span>","children":null,"spread":false},{"title":"vc142.pdb <span style='color:#111;'> 7.04MB </span>","children":null,"spread":false},{"title":"pch.obj <span style='color:#111;'> 677.48KB </span>","children":null,"spread":false},{"title":"SerialPortDemo.pch <span style='color:#111;'> 55.13MB </span>","children":null,"spread":false},{"title":"SerialPortDemo.log <span style='color:#111;'> 129B </span>","children":null,"spread":false},{"title":"SerialPortDemo.exe.recipe <span style='color:#111;'> 283B </span>","children":null,"spread":false},{"title":"SerialPortDemoDlg.obj <span style='color:#111;'> 236.64KB </span>","children":null,"spread":false},{"title":"vc142.idb <span style='color:#111;'> 1.45MB </span>","children":null,"spread":false},{"title":"SerialPortDemo.obj <span style='color:#111;'> 109.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"SerialPort.h <span style='color:#111;'> 4.41KB </span>","children":null,"spread":false},{"title":"SerialPortDemoDlg.cpp <span style='color:#111;'> 6.74KB </span>","children":null,"spread":false}],"spread":false},{"title":".git","children":[{"title":"hooks","children":[{"title":"fsmonitor-watchman.sample <span style='color:#111;'> 4.55KB </span>","children":null,"spread":false},{"title":"pre-push.sample <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"prepare-commit-msg.sample <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"pre-merge-commit.sample <span style='color:#111;'> 416B </span>","children":null,"spread":false},{"title":"applypatch-msg.sample <span style='color:#111;'> 478B </span>","children":null,"spread":false},{"title":"pre-commit.sample <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"pre-receive.sample <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"pre-applypatch.sample <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"commit-msg.sample <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"pre-rebase.sample <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"update.sample <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false},{"title":"post-update.sample <span style='color:#111;'> 189B </span>","children":null,"spread":false}],"spread":false},{"title":"config <span style='color:#111;'> 245B </span>","children":null,"spread":false},{"title":"description <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"tags","children":null,"spread":false},{"title":"heads","children":null,"spread":false}],"spread":true},{"title":"objects","children":[{"title":"91","children":[{"title":"9e779b7fdd64cdc172d0c271b95309b4568645 <span style='color:#111;'> 394B </span>","children":null,"spread":false}],"spread":true},{"title":"e6","children":[{"title":"9de29bb2d1d6434b8b29ae775ad8c2e48c5391 <span style='color:#111;'> 15B </span>","children":null,"spread":false}],"spread":true},{"title":"42","children":[{"title":"4235d53ef3993bf9745010ed1bfae34377a00d <span style='color:#111;'> 5.42KB </span>","children":null,"spread":false}],"spread":true},{"title":"9f","children":[{"title":"8d7b2ed4e701dc7b6d89e63ec3ad09a087d8cf <span style='color:#111;'> 29.75MB </span>","children":null,"spread":false}],"spread":true},{"title":"info","children":null,"spread":false},{"title":"pack","children":null,"spread":false}],"spread":true},{"title":"info","children":[{"title":"exclude <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":true},{"title":"HEAD <span style='color:#111;'> 23B </span>","children":null,"spread":false}],"spread":true},{"title":"项目配置.png <span style='color:#111;'> 14.60KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"SerialPortDemo.exe <span style='color:#111;'> 272.50KB </span>","children":null,"spread":false},{"title":"SerialPortDemo.pdb <span style='color:#111;'> 2.78MB </span>","children":null,"spread":false},{"title":"SerialPortDemo.ilk <span style='color:#111;'> 2.19MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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