登录
首页 » Visual C++ » winAPI_Sport_comm

winAPI_Sport_comm

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

代码说明:

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

文件列表:

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

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

发表评论

0 个回复

  • aaa
    串口监视工具。可以监视窗口的接受和发送的数据(Serial port monitoring tools. Can monitor the window to receive and send data)
    2010-01-18 14:08:20下载
    积分:1
  • SCommTest
    串口发送接收数据,初学者可以参考参考, - - ~(串口发送接收数据,初学者可以参考参考,-- ~)
    2009-07-08 16:39:55下载
    积分:1
  • chuankoutongxin
    我的毕业设计,很简单但很实用,是串口通信的典型实例,还有界面图形的设计(I graduated from design, very simple but very practical, is a typical example of the serial communication interface graphic design)
    2012-05-12 11:06:04下载
    积分:1
  • CommClient
    使用MSCOMM控件,实现两台电脑通过串口进行通信的功能。(Use MSCOMM control, to achieve two computers to communicate through the serial port function.)
    2011-07-21 10:58:17下载
    积分:1
  • Modbus Tools (1)
    说明:  串口调试,串口设备模拟,支持32/64位系统。(Serial debugging, serial device simulation)
    2020-06-20 08:00:01下载
    积分:1
  • bcb
    说明:  BCB串口通讯源码示例程序。利用winapi函数,而非控件。(BCB examples of serial communication program source. Use WINAPI function, rather than control.)
    2008-08-31 10:26:21下载
    积分:1
  • test1
    VB环境下简单的串口测试程序,测试两台主机通过串口是否能够实现数据传送,可以传送数字、字符串及汉字。(VB environment, a simple serial test program, test whether two hosts can be achieved through the serial data transfer, can send numbers, strings and characters.)
    2010-06-09 10:11:16下载
    积分:1
  • COOM
    Visual c++串口通信工程开发实例导航,该书采用C++编写,里面包含5个综合实例,适合有一定基础的C++人员学习(Visual c++ serial communication engineering development instance navigation, using c++, the book contains five examples of comprehensive, is suitable for the staff to learn c++ has certain foundation)
    2013-10-22 01:00:12下载
    积分:1
  • BLE-2015-3-16
    基于CC2540芯片的串口测试程序,是改别人的程序,很实用测试过,可供大家参考,程序架构调整过,很容易看懂。(Based on CC2540 chip serial test program, it is to change others program, very practical tested, for your reference, application architecture adjusted, it is easy to understand.)
    2015-04-19 21:53:13下载
    积分:1
  • PC to FX connection (ActDefine)
    说明:  Testing PC to DVP PLC connection
    2020-04-22 23:02:27下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载