Windows CE 触摸屏(TouchPanel)驱动简析(2)-DDSI函数
来源:互联网 发布:wpf 管理系统源码 编辑:程序博客网 时间:2024/03/29 16:55
1.DdsiTouchPanelAttach和DdsiTouchPanelDetach
DLL entry进入或结束执行,这里不需要任何工作,直接返回0
LONG DdsiTouchPanelAttach(void){ return 1;}This function executes when the MDD's DLL entry point gets a DLL_PROCESS_ATTACH message.
LONG DdsiTouchPanelDetach(void){ return 0;}
This function executes when the MDD's DLL entry point receives a DLL_PROCESS_DETACH message.
2.DdsiTouchPanelEnable
DdsiTouchPanelEnable使能触摸屏并进行相应的初始化工作等。
3.DdsiTouchPanelDisable
对应的就有DdsiTouchPanelDisable函数,将DdsiTouchPanelEnable申请的资源进行释放.屏蔽中断.
4.DdsiTouchPanelSetMode
DdsiTouchPanelSetMode用来设置触摸屏的采样率周期.函数传入TPSM_SAMPLERATE_LOW_ID或TPSM_SAMPLERATE_HIGH_ID来进行相应的设置.这里只有一个采样率周期,所以函数不做实际工作.
5.DdsiTouchPanelPowerHandler
DdsiTouchPanelPowerHandler用来通知驱动系统正进入或离开挂起状态.
参数bOff为TRUE表明系统正在关闭, FALSE表明系统正在开启.
6.DdsiTouchPanelGetDeviceCaps
DdsiTouchPanelGetDeviceCaps用来查询触摸屏设备的性能参数.
iIndex可能为以下3个参数:
TPDC_SAMPLE_RATE_ID: 返回采样周期,这里TSP_SAMPLE_RATE_LOW,TSP_SAMPLE_RATE_HIGH,
TPDC_CALIBRATION_POINT_ID:返回需要校准点的XY坐标.校准点坐标索引在PointNumber(lpOutput传递的结构成员).调用
7.DdsiTouchPanelGetPoint来获得.这点分别位于四个角和中间,也就是我们调用触摸屏校准程序时会调用到的函数.
TPDC_CALIBRATION_POINT_COUNT_ID:返回用来校准触摸屏的校准点数目.这里的数目设置为5.
8. DdsiTouchPanelPowerHandler
As with all power-down handlers, this function cannot call functions in
other DLLs, memory allocators, debugging output functions, or do anything
that could cause a page fault. This routine is called by the MDD.
9. DdsiTouchPanelSetMode
This function sets information about the touch screen device.
DEF:
LIBRARY touch
LIBRARY touch
EXPORTS
TouchPanelGetDeviceCaps
TouchPanelEnable
TouchPanelDisable
TouchPanelSetMode
TouchPanelReadCalibrationPoint
TouchPanelReadCalibrationAbort
TouchPanelSetCalibration
TouchPanelCalibrateAPoint
TouchPanelPowerHandler
- Windows CE 触摸屏(TouchPanel)驱动简析(2)-DDSI函数
- Windows CE 触摸屏(TouchPanel)驱动简析(2)-DDSI函数-(基于WinCE5.0 SMDK2410 BSP的TouchPanel驱动)
- Windows CE 触摸屏(TouchPanel)驱动简析(1)-原理及驱动架构(基于WinCE5.0 SMDK2410 BSP的TouchPanel驱动)
- Windows CE 触摸屏(TouchPanel)驱动简析(1)-原理及驱动架构
- Windows CE触摸屏驱动
- Windows CE下触摸屏驱动实现的分析[转]
- Windows CE下触摸屏驱动实现的分析
- Windows CE下触摸屏驱动实现的分析
- Windows CE USB Function Driver驱动简析(2)-IST函数(基于WinCE5.0 SMDK2410 BSP的UFBFN驱动)
- touchpanel驱动
- Windows CE下触摸屏驱动实现的分析——转载
- Windows CE下触摸屏驱动实现的分析——转载
- Windows CE USB Function Driver驱动简析(1)-驱动架构及UfnPdd函数(基于WinCE5.0 SMDK2410 BSP的UFBFN驱动)
- windows ce驱动
- Windows CE驱动开发
- Windows CE LCD驱动
- Windows CE LCD驱动
- Windows CE 驱动简介
- 养成良好的编程习惯
- 对程序员的忠告
- iphone 真机器log
- XML编程
- 关于JSON
- Windows CE 触摸屏(TouchPanel)驱动简析(2)-DDSI函数
- android 点亮屏幕和屏幕解锁
- 16进制字符串和byte数组的转化类
- Android工程 引用另外一个Android工程
- 很猛的一个界面库,牛!经常光顾下!
- OA发展新10年 泛微率先打“落地”牌
- 【linux学习】Linux文本操作命令及正则表达式基础
- 失控的UI自动化测试
- 转载一篇很好的文章