Linux下的Input子系统.pdfVIP

  • 6
  • 0
  • 约1.07万字
  • 约 4页
  • 2018-05-09 发布于福建
  • 举报
计 算 机 系 统 应 用 ||ww.c·S-a.org.cn 2013年 第 22卷 第 l2期 Linux下的Input子系统① 朱银瑞,吴庆洪,吴华玲 (辽宁科技大学 电子与信息工程学院,鞍山) 摘 要:Input子系统属于Linux系统下字符类驱动系统,现在 Android、X.windows、Qt等众多应用于Linux系 统中键盘、鼠标、触摸屏等输入设备的支持都通过、或越来越多倾向于标准的Input子系统.基于现况本文首先 从Inputdev层,InputCore层 和EventHandler层介绍Input输入子系统的实现框架,然后通过4x4矩阵按键在 Input子系统中的实现以及用户在应用层通过 Input子系统提供的接口函数对按键操作来查看具体的键值和按键 状态.测试结果表明,Input子系统里的按键驱动稳定高效通用性强. 关键词:嵌入式系统:Linux;Input系统:矩阵键盘 InputSub.System inLinux ZHUYin—Rui,WUQing—Hong,WUHua-Ling (SchoolofElectronicandInformmionEngineering,UniversityofScienceandTechnologyLiaoning,Anshan,China)。 Abstract:InLinuxsystemtheInputsub—system ischaracterdrivensystem.Nowandroid,X—windows,Qt,nadmany otherapplicationsinLinuxsystem forinputdevicessuchaskeyboard,mouse,touchscreensupportallthrough,ormore andmoreinclinedtostandardInputsubsystem.Basedoncurrentconditions,thisarticlefirstfrom nIputdevlayer,Input _ CorelayerandtheEventHna dlerlayerintroducedtheimplementationofInputsub-system rfamework,andthenachieve itthroughtheInputsub—system for4x4matrixkeypadandtheuserintheapplicationlayerusetheinterfacefunction providedbyInputsub—system tooperatethebuttonsinordertoview thespecificstatesna dvaluesofkeys.Theresults showsthatthekeypaddriverinInputsub—system raemorestableandhaveahihg efficiencynadSOithasagood com m on use. Keywords:embeddedsystem;Linux;Inputsub-system;matrixkeyboard 随着科技的进步,电子信息技术得到了飞速的发 Linux系统中,都可以利用Input接口函数来实现按键、 展,嵌入式系统产品已经深入到人们 日常的工作和生 触摸屏、鼠标、跟踪球、操纵杆、加速计和手写板等 活当中了,例如,打印机、空调、PDA、洗衣机、智能 输入型设备驱动,使这些驱动变得更易操作应用. 手机等.这些设备都需要用到或多或少的按键。而按 键作为人机交互的重要手段之一,在嵌入式系统产品 1 输入子系统结构 中起着越来越重要的作用.而Input子系统作为实现输 在Linux中,输入子系统作为一个模块存在,向上 入设备驱动的特殊系统具有:a、统一了物理形态各异 为用户层提供接口函数,向下为驱动层程序提供统一 的相似的输入设备的

文档评论(0)

1亿VIP精品文档

相关文档