登录
首页 » Visual C++ » winAPI_Sport_comm

winAPI_Sport_comm

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

代码说明:

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

文件列表:

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

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

发表评论

0 个回复

  • parallel_debug1
    VC语言编写的并口通信例程,可以对初学者有帮助的小程序。(VC language of parallel communication routines, can be helpful for beginners small procedures.)
    2005-07-08 17:22:47下载
    积分:1
  • PC-based-serial-communication
    基于Visual C++串口与下位机通信(Based on Visual C++ serial PC program to communicate with the microcontroller)
    2014-12-06 22:17:30下载
    积分:1
  • Show_Curve
    Visual Basic基于天平称重,串口接收数据,在窗体上进行曲线显示(Show Curve)
    2011-01-20 16:26:37下载
    积分: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
  • Open
    说明:  Wincc使用MSComm控件串口通讯,VB中发送十六进制数据(Wincc uses MSComm control to communicate through serial port and sends hexadecimal data in VB)
    2020-06-16 22:40:01下载
    积分:1
  • wendushujuxianshi
    VC++的MFC开发串口调试助手源代码,包括数据发送,接收,显示制式等 (VC++ of MFC development of serial debugging assistant source code, including data transmission, reception, display formats, etc.)
    2016-04-21 08:49:27下载
    积分:1
  • XWP
    XWP仪表参数的读取,是帮1个朋友编写的(Instrument parameters XWP read, is to help a friend prepare the)
    2007-11-28 12:07:41下载
    积分:1
  • MFC20100619221344
    这是MFC串口编程的具体步骤 对学串口编程有很大帮助(This is the MFC programming serial port programming of specific steps to learn of great help)
    2010-06-19 22:21:11下载
    积分:1
  • serial2.1.3.4
    自己用api写的串口通信动态库,可以同时打开多个串行口,自带设置函数(own use api write serial communication DLL, it will also open up a number of serial port, bringing their function set)
    2007-01-03 19:40:09下载
    积分:1
  • COMDLL
    说明:  把串口读写函数写成动态链接库,方便在不同工程之间移植。代码测试已经通过,方便大家学习使用(The serial port read-write function is written as dynamic link library, which is convenient to transplant between different projects. Code test has passed, easy to learn to use)
    2021-04-25 13:43:20下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载