登录
首页 » Visual C++ » winAPI_Sport_comm

winAPI_Sport_comm

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

代码说明:

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

文件列表:

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

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

发表评论

0 个回复

  • CharTerminal
    说明:  简单的串口通讯例子,有主机,目标机组成,发送数据,接受数据(Simple example of serial communication, a host, target composition, send data, receive data)
    2011-04-10 18:48:55下载
    积分:1
  • vcchuangkoutongxin
    实现串口通信功能 基于MFC的对话框,程序简单易懂 适合初学者(Serial communication functions based on the MFC dialog box, the program is easy to understand for beginners)
    2012-05-19 20:45:35下载
    积分:1
  • SerialPortTest
    最简单的串口通信程序,MFC,基于SerialPort类,VS2008(The simplest SerialPort program,based on CSerialPort ,VS2008)
    2012-12-27 18:17:05下载
    积分:1
  • TTY
    MFC的串口通信程序 能真确运行 经调试后无误(MFC serial communication program can be true and correct after running through debug)
    2010-08-07 18:42:04下载
    积分:1
  • 通信
    一个很好的COM口通讯类(An uart mfc example)
    2020-06-26 10:00:02下载
    积分:1
  • Zigbee
    Zigbee开发文档和常见案例 18B20可休眠温度采集方案快速搭建手册 串口透传方案快速上手指南(Zigbee )
    2013-10-18 15:57:29下载
    积分:1
  • common-master
    网上整理下载的非常好的串口程序,功能强大,代码质量也很高。(About serial communication)
    2015-07-15 11:51:30下载
    积分:1
  • serial
    串口驱动程序,可替换NT下的串口驱动程序 (Serial dirver which can replace serial driver in NT)
    2021-04-20 23:48:49下载
    积分:1
  • comm
    Windows串口编程 (Windows serial programming)
    2020-06-30 11:20:02下载
    积分:1
  • CSerialPort
    CSerialPort.h CSerialPort.c VC++串口通讯类,用于初学串口通讯,及串口通讯原理有一定帮助。(CSerialPort.h CSerialPort.c)
    2009-11-18 08:43:15下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载