收藏 分享(赏)

win7液晶触摸屏HID描述符.doc

上传人:gnk289057 文档编号:8385838 上传时间:2019-06-23 格式:DOC 页数:3 大小:27KB
下载 相关 举报
win7液晶触摸屏HID描述符.doc_第1页
第1页 / 共3页
win7液晶触摸屏HID描述符.doc_第2页
第2页 / 共3页
win7液晶触摸屏HID描述符.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

1、下面是 win7 触摸描述符0x05, 0x0d, / USAGE_PAGE (Digitizers) 00x09, 0x04, / USAGE (Touch Screen) 20xa1, 0x01, / COLLECTION (Application) 40x85, 0xaa, / REPORT_ID (Touch) 60x09, 0x20, / USAGE (Stylus) 80xa1, 0x00, / COLLECTION (Physical) 100x09, 0x42, / USAGE (Tip Switch) 120x15, 0x00, / LOGICAL_MINIMUM (0) 1

2、40x25, 0x01, / LOGICAL_MAXIMUM (1) 160x75, 0x01, / REPORT_SIZE (1) 180x95, 0x01, / REPORT_COUNT (1) 200x81, 0x02, / INPUT (Data,Var,Abs) 220x95, 0x03, / REPORT_COUNT (3) 240x81, 0x03, / INPUT (Cnst,Ary,Abs) 260x09, 0x32, / USAGE (In Range) 280x09, 0x37, / USAGE (Data Valid-Finger) 300x95, 0x02, / RE

3、PORT_COUNT (2) 320x81, 0x02, / INPUT (Data,Var,Abs) 340x95, 0x0a, / REPORT_COUNT (10) 360x81, 0x03, / INPUT (Cnst,Ary,Abs) 380x05, 0x01, / USAGE_PAGE (Generic Desktop) 400x26, 0xff, 0x7f, / LOGICAL_MAXIMUM (32767) 420x75, 0x10, / REPORT_SIZE (16) 450x95, 0x01, / REPORT_COUNT (1) 470xa4, / PUSH 490x5

4、5, 0x0d, / UNIT_EXPONENT (-3) 500x65, 0x00, / UNIT (None) 520x09, 0x30, / USAGE (X) 540x35, 0x00, / PHYSICAL_MINIMUM (0) 560x46, 0x00, 0x00, / PHYSICAL_MAXIMUM (0) 580x81, 0x02, / INPUT (Data,Var,Abs) 610x09, 0x31, / USAGE (Y) 630x46, 0x00, 0x00, / PHYSICAL_MAXIMUM (0) 650x81, 0x02, / INPUT (Data,Va

5、r,Abs) 680xb4, / POP 700x05, 0x0d, / USAGE PAGE (Digitizers) 710x09, 0x60, / USAGE (Width) 730x09, 0x61, / USAGE (Height) 750x95, 0x02, / REPORT_COUNT (2) 770x81, 0x02, / INPUT (Data,Var,Abs) 790x95, 0x01, / REPORT_COUNT (1) 810x81, 0x03, / INPUT (Cnst,Ary,Abs) 83/850xc0, / END_COLLECTION 0/10xc0 ,

6、/ END_COLLECTION 0/1For Windows 7, touch digitizers appear through HID as a touch digitizer (page 0x0D, usage 0x04).The following usages are required:X (page 0x01, usage 0x30) and Y (page 0x01, usage 0x31).Tip switch (page 0x0D, usage 0x42).In-range (page 0x0D, usage 0x32).Use tip switch to indicate

7、 finger contact and liftoff from the digitizer surface, similar to how a pen reports contact with the digitizer.If the device supports z-axis detection, it reports in-range correctly. If the device does not support z-axis detection, the driver reports packets with in-range and tip switch set when a

8、finger comes in contact with the digitizer.Note that some earlier versions of Windows have different guidelines for how touch digitizer drivers should handle in-range reporting. The Windows XP Tablet PC OEM Preinstallation Kit (OPK) includes information about how to implement a touch digitizer drive

9、r for Windows XP. For more information, contact your Microsoft technical account manager.The following usages are optional, but you should implement them if the digitizer hardware supports them:Confidence (page 0x0D, usage 0x47).Width and height (page 0x0D, usages 0x48 and 0x49).上面是报告描述符,上面报告描述符要发 1

10、2 字节给电脑。我发给的数据为。data0=0x21,data1=0x00,data2=0x00,data3=0x01,data4=0x00,data5=0x01,data6=0x10,data7=0x00,data8=0x10,data9=0x00,data10=0x00,data11=0x00,第 0 个节字 data0,第 0 位为判断是否触摸位。我置 1第 0 个节字,每三位为 IN Range 位,判断是否有 z 轴。我置 0。第 0 个节字,每四位为信心位,判断对触摸的确定度,我置 1。第 0 个节字其它位为常数 0。每 1 个节字,data1 。为常数位。我置 0。第 2,3 节字 data2=0x00,data3=0x01。为 X 轴,坐标。第 4,5 节字 data4=0x00,data5=0x01。为 Y 轴,坐标。第 6,7 节字 data6=0x10,data7=0x00。为触摸宽度。第 8.,9 节字 data8=0x10,data9=0x00。为触摸高度。第 10.11 节字 data10=0x00,data11=0x00,为常数 0不知前上分细对不对?发送的数据对不对?LM:逻辑大,LN:逻辑小,PM:物理大,PN :物理小,精度公式:(LM-LN )/(PM-PN )*10(的三次方)还是怎么计算?

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报