SetCommMask
来源:互联网 发布:mac 思维导图 知乎 编辑:程序博客网 时间:2024/05/01 11:44
SetCommMask ()函数设置事件掩模来监视指定通信端口上的事件,其原型为:
HANDLE hFile, //标识通信端口的句柄
DWORD dwEvtMask //能够使能的通信事件
);
串口上可能发生的事件如下表所示:
值 事件描述EV_BREAKA break was detected on input.EV_CTS The CTS (clear-to-send) signal changed state.EV_DSRThe DSR(data-set-ready) signal changed state.EV_ERRA line-status error occurred. Line-status errors are CE_FRAME, CE_OVERRUN, and CE_RXPARITY.EV_RING A ring indicator was detected.EV_RLSD The RLSD (receive-line-signal-detect) signal changed state.EV_RXCHARA character was received and placed in the input buffer.EV_RXFLAG The event character was received and placed in the input buffer. The event character is specified in the device's DCB structure, which is applied to a serial port by using the SetCommState function.EV_TXEMPTYThe last character in the output buffer was sent.
- SetCommMask
- SetCommMask
- SetCommMask WaitCommMask
- SetCommMask 事件设置
- SetCommMask应用实例(事件处理部分)
- 串口 SetCommMask WaitCommEvent 设置 等待串口通信事件
- 串口编程 —— 实现 GPS 过程中自己用到的函数 COMMTIMEOUTS,SetCommMask,SetCommTimeouts
- 串口编程 —— 实现 GPS 过程中自己用到的函数 COMMTIMEOUTS,SetCommMask,SetCommTimeouts
- Kernel module编程(十三):信号量、互斥锁、读写信号量和完成量
- 从大飞机核心网络芯片看科研院所的未来
- 痛快
- 生成Poisson泊松随机序列的代码
- PurgeComm()函数--清空缓冲区
- SetCommMask
- Linux下配置IP、DNS和路由
- IP-MAC扫描监视器早已完成
- oracle复习(二) 之扩展 设置数据库为只读
- Doc To RTF
- S3c2410触摸屏驱动移植
- 《C#图解教程》读书笔记第15章——委托
- C#类==>属性
- ASP.NET生成随机密码