登录
首页 » Visual C++ » winAPI_Sport_comm

winAPI_Sport_comm

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

代码说明:

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

文件列表:

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

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

发表评论

0 个回复

  • 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
  • tcptocom
    国外经典的TCP转串口的程序,VC++编写,有较强的参考价值(Foreign classic TCP to serial program, VC++ write, there is a strong reference value)
    2020-11-22 11:29:35下载
    积分:1
  • rtcm
    初始化RTCM控制,并且把文件或者串口数据转输出成RTCM格式(RTCM control initialization, and the output files or serial data transfer format to RTCM)
    2016-05-26 08:26:02下载
    积分:1
  • VC modbus
    VC串口通信modbus协议源代码,测试可用。(modbus通信协议)(VC serial communication protocol source code modbus)
    2014-06-07 18:26:28下载
    积分:1
  • fxplcCommunictionDLL
    用VB编写的FX系列PLC通信动态链接库,用户只需调用API函数就可以简单的实现串口通讯(VB prepared by the FX series PLC communication dynamic link library, Users only need to call API functions can be achieved by a simple serial communications)
    2007-05-27 17:16:40下载
    积分:1
  • DK20DieselizeDynamotor
    485通讯接口模块的编程应用,监控显示,检测报警显示,上下值的设置输入输出的结构(485 Communications Interface Module programming applications, monitor display, alarm detection showed that the whole value of the structure of input and output settings)
    2008-08-10 22:12:38下载
    积分:1
  • mscomm
    控件 进行串口通信,采用微软的控件控件 进行串口通信,采用微软的控件(Controls the serial communication, using Microsoft' s control controls the serial communication, using Microsoft' s control)
    2012-09-15 21:43:29下载
    积分:1
  • 自动配料系统081125
    通过和OMron PLC通讯,实时监控自动化设备运行,并下发指令控制(Through the communication with OMron PLC, real-time monitoring of automatic device operation, and instruction control)
    2017-07-07 12:03:44下载
    积分:1
  • serial-communication
    利用C语言实现RS232串口上下位机通信的设计(Using C language to realize RS232 serial port communication up and down a machine design )
    2013-12-12 10:18:29下载
    积分:1
  • PTZ-camera-control-system
    使用vc++开发的云台镜头控制系统,主要通过串口实现控制,已编译通过,可学习使用(PTZ camera control system)
    2013-09-24 22:31:17下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载