登录
首页 » Visual C++ » winAPI_Sport_comm

winAPI_Sport_comm

于 2007-08-02 发布 文件大小:5KB
0 254
下载积分: 1 下载次数: 192

代码说明:

  实现串行通讯的相关API函数 API函数不仅提供了打开和读写通讯端口的操作方法,还提供了名目繁多的函数以支持对串行通讯的各种操作。 函数名 作用 CreateFile 打开串口 GetCommState 检测串口设置 SetCommState 设置串口 BuilderCommDCB 用字符串中的值来填充设备控制块 GetCommTimeouts 检测通信超时设置 SetCommTimeouts 设置通信超时参数 SetCommMask 设定被监控事件 WaitCommEvent 等待被监控事件发生 WaitForMultipleObjects 等待多个被监测对象的结果 WriteFile 发送数据 ReadFile 接收数据 GetOverlappedResult 返回最后重叠(异步)操作结果 PurgeComm 清空串口缓冲区,退出所有相关操作 ClearCommError 更新串口状态结构体,并清除所有串口硬件错误 CloseHandle 关闭串行口()

文件列表:

用API函数实现串行通讯.txt

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • CommTest
    串口通讯测试代码,经过测试,可以成功运行。(Serial Communication Test.)
    2010-08-25 22:04:07下载
    积分:1
  • VCPP
    VC++串口上位机程序编写,很详细,初学者编写上位机适用(VC++ serial PC programming, in great detail, the preparation of PC suitable for beginners)
    2020-11-08 21:59:47下载
    积分:1
  • 数据实时采集显示例
    通过调用API函数实时采集来自串口的数据,并将数据实时显示在界面中(function: sample data come from serio port and display information in form)
    2017-06-29 21:57:21下载
    积分:1
  • ser
    说明:  串口通信高级编程提供了一个能够进行串口通信的类,能够方便地进行各种数据通信。 由于本程序设计到硬件编程,因此,如果读者的串口通信设备 没有连接好,可能会有问题 (Serial communication provides a high-level programming to carry out the type of serial communication, the ability to easily carry out a variety of data communications. Since the hardware design to programming, so if the reader' s serial communications equipment is not connected well, there may be some problems)
    2009-08-18 16:49:04下载
    积分:1
  • rs232
    基于labwindows/cvi的串口通信的实现,希望对有需要的朋友提高参考(Based on labwindows/cvi Serial Communication, in the hope that there is a need to increase the references friends)
    2009-04-19 14:22:41下载
    积分:1
  • RTDemo
    经典VC++环境下从串口读取数据并实时绘制曲线图(Read data from the serial port classical VC++ environment and real-time rendering graph)
    2012-11-29 11:44:36下载
    积分:1
  • com_debugger
    串口调试程序源代码,本例作为学习串口编程具有很好的参照作用。(Serial debugger source code, in this case as a learning serial programming with a good reference to the role.)
    2013-09-20 18:32:13下载
    积分:1
  • 2
    说明:  VC++串口通信20个经典源码合集,经典全集,串口开发必看(VC++ Serial communication source collection of 20 classic, classic Collection, Must See Serial Development)
    2011-04-21 09:51:05下载
    积分:1
  • winAPI_Sport_comm
    实现串行通讯的相关API函数 API函数不仅提供了打开和读写通讯端口的操作方法,还提供了名目繁多的函数以支持对串行通讯的各种操作。 函数名 作用 CreateFile 打开串口 GetCommState 检测串口设置 SetCommState 设置串口 BuilderCommDCB 用字符串中的值来填充设备控制块 GetCommTimeouts 检测通信超时设置 SetCommTimeouts 设置通信超时参数 SetCommMask 设定被监控事件 WaitCommEvent 等待被监控事件发生 WaitForMultipleObjects 等待多个被监测对象的结果 WriteFile 发送数据 ReadFile 接收数据 GetOverlappedResult 返回最后重叠(异步)操作结果 PurgeComm 清空串口缓冲区,退出所有相关操作 ClearCommError 更新串口状态结构体,并清除所有串口硬件错误 CloseHandle 关闭串行口()
    2007-08-02 11:52:20下载
    积分:1
  • comm
    用vc写的向串口发十六进制数据。 文件中有整个工程文件。(Vc wrote with hex data sent to the serial port. File in the project file.)
    2012-01-09 22:29:28下载
    积分:1
  • 696516资源总数
  • 106436会员总数
  • 7今日下载