摘要
基于VxWorks操作系统设计了数据采集从板的驱动程序,程序框架上驱动程序将对从板的操作抽象为对字符型设备的操作,驱动程序在内部实现了数据IO操作的阻塞机制、查询机制及信号通知机制,采用这种方式设计的驱动程序向用户提供了统一的接口,方便用户使用,同时将硬件操作与应用程序分开便于驱动程序进行扩展;驱动设计工作是精密环境控制系统的一部分,驱动程序的设计方法可以广泛地应用于基于VME总线的从设备驱动设计。
Drive program for slave data acquisition board was design based on VxWorks operating system (OS). The opera- tion of slave board is abstracted as typical character equipment. The block, query and signal notification mechanisms of data I0 operation are implemented inside drive program, which can provide uniform and convenient interfaces for users by these mecha- nisms, divide the hardware operation from the application program so that the drive program is upgraded and expanded easily. The driver design is a part of fine environment control system. The design method of the drive program can be generally used in driver design based on VME bus.
出处
《现代电子技术》
2013年第6期79-82,共4页
Modern Electronics Technique
基金
国家重大科技专项02专题资助(2009ZX02205)