串口设备驱动相关事件的掩码定义(IOCTL_SERIAL_GET_WAIT_MASK)
2017-01-19 16:01
627 查看
最近研究网口转虚拟串口驱动程序。通过查看DDK的例子,发现需要处理 IOCTL_SERIAL_GET_WAIT_MASK 。但是一些相关的掩码定义比较少见到,相关的资料说明也少。这里列举出来,以便自己更好的理解,同时用于编写的虚拟串口驱动程序中。
相关掩码的定义在 C:\WinDDK\7600.16385.1\inc\api\ntddser.h 文件中。 原本的内容注释已经非常清晰了,我就不画蛇添足了。
相关掩码的定义在 C:\WinDDK\7600.16385.1\inc\api\ntddser.h 文件中。 原本的内容注释已经非常清晰了,我就不画蛇添足了。
// // Defines the bitmask that the driver can used to notify // app of various changes in the state of the UART. // #define SERIAL_EV_RXCHAR 0x0001 // Any Character received #define SERIAL_EV_RXFLAG 0x0002 // Received certain character #define SERIAL_EV_TXEMPTY 0x0004 // Transmitt Queue Empty #define SERIAL_EV_CTS 0x0008 // CTS changed state #define SERIAL_EV_DSR 0x0010 // DSR changed state #define SERIAL_EV_RLSD 0x0020 // RLSD changed state #define SERIAL_EV_BREAK 0x0040 // BREAK received #define SERIAL_EV_ERR 0x0080 // Line status error occurred #define SERIAL_EV_RING 0x0100 // Ring signal detected #define SERIAL_EV_PERR 0x0200 // Printer error occured #define SERIAL_EV_RX80FULL 0x0400 // Receive buffer is 80 percent full #define SERIAL_EV_EVENT1 0x0800 // Provider specific event 1 #define SERIAL_EV_EVENT2 0x1000 // Provider specific event 2
相关文章推荐
- 如何在 Linux 上安装设备驱动程序
- 解决Vista系统OpenGL驱动问题的方法整理
- 处理驱动器和文件夹
- Windows Vista手动安装SATA硬盘驱动全过程
- Nodejs学习笔记之测试驱动
- C#中使用1.7版本驱动操作MongoDB简单例子
- C#判断指定驱动器是否已经准备就绪的方法
- MongoDB入门教程之C#驱动操作实例
- JDBC数据库连接过程及驱动加载与设计模式详解
- C#返回当前系统所有可用驱动器符号的方法
- Linux 字符设备驱动框架详细介绍
- linux 驱动之Kconfig文件和Makefile文件实例
- SQL SERVER使用ODBC 驱动建立的链接服务器调用存储过程时参数不能为NULL值
- js事件驱动机制 浏览器兼容处理方法
- monkeyrunner之电脑安装驱动(5)
- 使用java web 在jsp文件及Class中连接MySQL和SQLsever 的驱动方法
- MongoDB快速入门笔记(八)之MongoDB的java驱动操作代码讲解
- python测试驱动开发实例
- 解决ubuntu 15.04 无法开启wifi问题
- LDD3阅读笔记-概述