什么是使用触摸屏,tslib的的数据流? [英] What is the dataflow of using touchscreen with tslib?

查看:262
本文介绍了什么是使用触摸屏,tslib的的数据流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白怎么tslib的工作。比方说,我有一个串行的触摸屏,在我的理解通过以下方式将数据流:
TS preSS - >串口 - > TS司机 - > tslib的 - >设备文件(如/ dev /输入/ eventX)
这样对吗?或者我需要插入的一些code TS司机 tslib的,使他们能够沟通?

I don't understand how tslib works. Let's say I have a serial touchscreen, in my understanding the data flows in the following way: ts press -> serial port -> ts driver -> tslib -> device file (like /dev/input/eventX) Is it right? Or do I need to insert some code between ts driver and tslib so that they can communicate?

推荐答案

tslib的不触摸屏驱动器和输入设备文件的操作 - 它访问代表使用它的应用程序的设备文件。使用时,tslib的关键数据流设备文件 - > tslib的 - >应用

Tslib does not operate between the touch screen driver and the input device file - it accesses the device file on behalf of the application using it. The key data flow when using tslib is device file -> tslib -> application.

应用程序指定(触摸设备)tslib的应与 ts_open()函数中使用的输入设备文件,然后使用其他tslib的函数来获取触摸样品。

The application specifies the input device file (of the touch device) tslib should use with the ts_open() function and then uses other tslib functions to obtain the touch samples.

该tslib的API在 tslib.h 并定义还有在测试的一些源使用的例子包括简单的 ts_print.c

The tslib API is defined in tslib.h and there's a number of usage examples in the source under tests including the simple ts_print.c.

这篇关于什么是使用触摸屏,tslib的的数据流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆