전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN2641 데이터시트(PDF) 31 Page - STMicroelectronics

부품명 AN2641
상세설명  Using the color LCD controller
PDF  37 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2641 데이터시트(HTML) 31 Page - STMicroelectronics

Back Button AN2641 Datasheet HTML 27Page - STMicroelectronics AN2641 Datasheet HTML 28Page - STMicroelectronics AN2641 Datasheet HTML 29Page - STMicroelectronics AN2641 Datasheet HTML 30Page - STMicroelectronics AN2641 Datasheet HTML 31Page - STMicroelectronics AN2641 Datasheet HTML 32Page - STMicroelectronics AN2641 Datasheet HTML 33Page - STMicroelectronics AN2641 Datasheet HTML 34Page - STMicroelectronics AN2641 Datasheet HTML 35Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 31 / 37 page
background image
AN2641
Touchscreen
Doc ID 14027 Rev 1
31/37
7.2
Linux input layer
The kernel's input subsystem layer was created to unify scattered drivers that handle
diverse classes of data-input devices such as keyboards, mice, and touch screens.
The kernel's input subsystem layer permits the uniform handling of functionally similar input
devices even when they are physically different. For example, all mice, such as PS/2, USB
or Bluetooth, are treated alike.
It provides an easy event interface for dispatching input reports to user applications. The
driver does not have to create and manage /dev nodes and related access methods.
Instead, it can simply invoke input APIs to send mouse movements, key presses, or touch
events upstream to the user layer. Applications such as X Windows work seamlessly over
the event interfaces exported by the input subsystem layer.
The name of the touchscreen driver is "drivers/input/touchscreen/spear_ts.c" (or
"drivers/input/touchscreen/spr_ts_st.c"). To integrate with the input subsystem layer, the
driver fills the structure 'struct input_dev *input_dev' and register through the call
input_register_device( ).
The sequence of events sent to the application layer is as illustrated in Figure 19:
Figure 19.
Sequence of events from touchscreen driver
7.3
Calibration process
Any CLCD panel touchscreen cannot return absolutely correct coordinates, rather it only
returns default values which need to be adjusted to the CLCD panel dimensions. This is the
purpose of a calibration tool.
The calibration tool works with a simple concept, it asks the user to touch four corner points
of the CLCD panel and stores these values. It then learns the offsets and scales used to
later calculate the correct coordinates. Calibration may vary for different CLCD panels so
before using the touchscreen, the CLCD panel has to be calibrated.
Once calibration is successfully performed, the calibration data is written in a file in a
particular format. It is up to the user application to use the information provided in the file to
calculate correct coordinates.
Figure 20 shows the calibration tool display after the calibration process is over.
PRESS EVENT (1)
X coordinate
Y coordinate
SYN
PRESS EVENT (1)
X coordinate
Y coordinate
SYN
(Press events may go multiple times )
.
.
.
RELEASE EVENT(0)
X coordinate
Y coordinate
SYN
(Release event will go only once)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com