登录
首页 » Visual C++ » winAPI_Sport_comm

winAPI_Sport_comm

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

代码说明:

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

文件列表:

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

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

发表评论

0 个回复

  • 1
    说明:  VC++编写上位机串口通信界面,原创VC++编写串口通信上位机界面 本人做接口实验时上位机部分 (VC++ write PC serial communication interface, the preparation of original VC++ serial communication interface, PC interface, I do some PC experiments)
    2010-08-30 11:15:53下载
    积分:1
  • ModbusClient
    Modbus TCP/IP协议client端源代码(Modbus TCP/IP protocal test)
    2009-06-10 23:02:44下载
    积分:1
  • wireless-voting-machine
    基于单片机的无线表决器下位机程序,实现数据的无线传输及和上位机之间的串口通信(Microcontroller-based wireless voting machine computer program under)
    2011-09-22 18:41:10下载
    积分:1
  • 自动检测
    说明:  串口通信,对串口发出的数据进行读取和处理,进行检测(Serial communication, read and process the data sent by the serial port, and detect it.)
    2020-06-17 10:40:02下载
    积分: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
  • Serial-debugging-aides_VB
    串口调试助手VB.zip 我想大家都用过 串口调试助手, 也都期望自己能够制作出同样的通信界面; 那么这里的工具,让你如愿…… 采用VB编程,超级简单实用。(Serial debugging assistant VB.zip I would like that we have used serial debugging assistant, also expect to be able to produce the same communication interface where the tool that allows you to do so ... using VB programming, super simple and practical.)
    2012-08-04 12:26:47下载
    积分:1
  • VBtongguochuankou-yuancheng-guanji
    利用VB语言实现对串口进行操作,从而实现通过串口进行远程关机的操作,了解相关编程方法。(VB language serial port operation through the serial port for remote shutdown operation, understanding related programming methods.)
    2013-03-29 11:11:11下载
    积分:1
  • SerialPortComm
    此程序是一个串口调试助手。可以实现16进制发送接收。用MFC编写。(This program is a serial debugging assistants can realize hexadecimal to send and receive written in MFC )
    2013-07-14 20:57:36下载
    积分:1
  • VCPP-Serial-host-computer
    实现串口通信的编程,关于类以及继承的一些使用方法,新手可以参考。(Serial communication programming, use classes and inheritance, the novice can refer to.)
    2013-05-03 09:07:54下载
    积分:1
  • parallel_debug1
    VC语言编写的并口通信例程,可以对初学者有帮助的小程序。(VC language of parallel communication routines, can be helpful for beginners small procedures.)
    2005-07-08 17:22:47下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载