登录
首页 » Visual C++ » winAPI_Sport_comm

winAPI_Sport_comm

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

代码说明:

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

文件列表:

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

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

发表评论

0 个回复

  • SCommTest1
    该源代码主要是实现串口通信,并将所传输的内容实现保存。(The source code is mainly realize serial communication, and the transmission of content preservation.)
    2007-10-25 21:18:20下载
    积分:1
  • DSP-com
    说明:  介绍DSP与上微机的串口通信和功能设置,及通信调试(introduced DSP and PC on the serial communications and functionality, and communication Debugging)
    2006-04-25 10:04:22下载
    积分:1
  • Digital_communication_programm
    说明:  数控程序传输,主要是三个程序,KND及GSK990m传输软件,Sercom,hmcadcam_Dnc(NC program transmission, there are three main procedures GSK990m KND and transmission software, Sercom, hmcadcam_Dnc)
    2006-03-07 08:36:41下载
    积分: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
  • labwindows-serial
    labwindows 串口编程 简单易懂 做虚拟仪器的同学可以看看 或许对你有用(programming straightforward labwindows serial do virtual instrument students can take a look at perhaps useful to you)
    2012-11-20 20:41:40下载
    积分:1
  • CVCOMMPortTool
    COM口设置 串口设定 端口号 波特率 数据位 停止位 校验位 串口数据接收 串口收据发送(COM port settings Serial data receiving Serial receipt)
    2015-10-13 10:12:44下载
    积分:1
  • CommTest
    串口通讯测试代码,经过测试,可以成功运行。(Serial Communication Test.)
    2010-08-25 22:04:07下载
    积分:1
  • pack
    C++串口通信代码,接收下位机的数据点,并在前面板画出图形。(数据格式* , , /)内附STM32串口发送数据程序(C++ serial communication code, receive under the data points, and the front panel to draw graphics. (Data format,*, /) containing STM32 serial transmit data program)
    2013-10-28 20:14:38下载
    积分: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
  • Show_Curve
    Visual Basic基于天平称重,串口接收数据,在窗体上进行曲线显示(Show Curve)
    2011-01-20 16:26:37下载
    积分:1
  • 696524资源总数
  • 103896会员总数
  • 68今日下载