首页 | 本学科首页   官方微博 | 高级检索  
     

基于COMEDI的数据采集卡Linux驱动开发
引用本文:褚文奎,张凤鸣.基于COMEDI的数据采集卡Linux驱动开发[J].微计算机信息,2007,23(31):88-90.
作者姓名:褚文奎  张凤鸣
作者单位:空军工程大学工程学院,陕西西安,710038
摘    要:与传统开发linux设备驱动程序的方法相比。依托comedi自由软件开发数据采集设备的驱动程序可以使程序员集中精力编写驱动核心代码,省去了内存管理、错误处理等许多繁冗而不可或缺的基础性工作。简要介绍了comedi各个组件之间的关系;重点研究了comedi的两种实现机制——命令机制和指令机制,分析了二者的差异性和适用性;并依托指令机制,以典型的模拟输出设备PCM-3712数据采集板卡的linux驱动开发为例.介绍了驱动开发过程中用到的数据结构和编写的与板卡相关的函数。

关 键 词:驱动程序  数据采集
文章编号:1008-0570(2007)11-1-0088-03
修稿时间:2007-08-13

Development of linux drivers for DAQ boards based on COMEDI
CHU WENKUI,ZHANG FENGMING.Development of linux drivers for DAQ boards based on COMEDI[J].Control & Automation,2007,23(31):88-90.
Authors:CHU WENKUI  ZHANG FENGMING
Abstract:Compared with the traditional development method of linux drivers, a new development method for DAQ cards with the comedi free software, may let programmers pay their attentions to the implementation of the core code of linux drivers, because the infrastructure in linux driver development, e.g. memory management, error handling, had been implemented in comedi, The relations among all the parts of comedi were briefly introduced. The two mechanisms, command and instruction, were studied and their difference and applicability were analyzed. As an example, a new driver for a DAQ card, PCM-3712, was developed based on instruction mechanism, and the data structures used in the development and the functions which were related to the specific board were also introduced.
Keywords:comedi  linux  pcm-3712
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号