摘要
对基于模数转换模块(ADC)的温度传感器驱动程序实现方法进行了说明.按照字符设备的注册、文件操作结构体的赋值,以及主要函数的编写等三个步骤介绍了Linux系统下模数转换模块(ADC)驱动程序的实现过程.给出了该驱动在用户空间的测试程序,测试结果说明驱动程序运行正常,在Linux系统下能够成功读取温度传感器的有效数据.
This paper illuminates basic principle of Linux device drivers of temperature sensor based on ADC.Three steps of realization process about ADC device driver are: device register,file operations structure assignment and writing function in file operations structure.Test results show that the driver normally runs,and application program reads the effective data successfully from temperature sensor in user space of Linux system.
出处
《山东理工大学学报(自然科学版)》
CAS
2011年第6期98-100,共3页
Journal of Shandong University of Technology:Natural Science Edition