摘要
为了实现PCI数据采集卡的数据传输,必须开发PCI设备的驱动程序。介绍了以DriverStudio中的Driver Works为工具,开发PCI设备WDM驱动程序的方法。探讨了PCI设备的I/O端口访问、中断处理、驱动程序与应用程序之间的通信等主要问题,重点对编写驱动程序的过程和主要例程的代码进行了说明,并实现了驱动程序的安装与调试。最后对实际中遇到的问题及解决方法做了总结,实践证明该驱动程序调试通过,运行稳定。
In order to develop the data transmission of the PCI data-sampling card, the drivers of the PCI device should be designed. The paper introduces the methods of WDM driver exploitation for PCI device using DriverWorks of DriverStudio. The main process of driver program and the keys such as I/O, handle interrupt and the communication between the drivers and application are presented. The main focus is put to the process of programming drivers and the detail codes of main courses. Meanwhile, how to debug and install the driver are explained. In the end, the author sums up the questions met in the practically design and gives the solve methods. It is proved that the drivers run steadily.
出处
《电子器件》
CAS
2008年第3期1069-1072,共4页
Chinese Journal of Electron Devices