摘要
针对Windows2000下不能像DOS环境一样直接访问系统的硬件资源,提出了开发驱动程序模型WDM(Windows Driver Model);使其工作在Ring0层,成为操作系统内核的一部分,从而实现对硬件快速访问;文章介绍了这种新型驱动程序的运行机制及其特点;以开发基于PCI总线陀螺测试系统的设备驱动程序为应用实例,阐述了使用Compuware Numega公司Driver Studio开发的具体步骤和设计方法,自定义I/O控制命令的编写例程,并采用GUID这种新型命名方案唯一标识接口设备,给出驱动程序同上层测试软件通信的实现方法;该驱动程序应用结果表明,数据传输准确,系统性能稳定,有较好应用价值。
WDM (Windows Driver Model) has been put forward because there is no directly ways to manipulate hardware under Windows 2000. Being part of the core of operation system, WDM works in Ring0 level, and makes the quick access to hardware. The working mechanism and the character of the new driver model in Windows 2000 are briefly presented. Example of exploitation Gyroscope test system based on PCI Bus was introduced. And the method for the driver in use of driver studio to communicate with test procedure is provided. The article describes in detail that how to build I/O control code and adopt GUID to get handle. The application shows that this system runs stably and accurately.
出处
《计算机测量与控制》
CSCD
2006年第7期964-967,共4页
Computer Measurement &Control
基金
中国兵器工业总公司(H20030743)。