công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

UM0851 bảng dữ liệu(PDF) 176 Page - STMicroelectronics

tên linh kiện UM0851
Giải thích chi tiết về linh kiện  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 bảng dữ liệu(HTML) 176 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 172Page - STMicroelectronics UM0851 Datasheet HTML 173Page - STMicroelectronics UM0851 Datasheet HTML 174Page - STMicroelectronics UM0851 Datasheet HTML 175Page - STMicroelectronics UM0851 Datasheet HTML 176Page - STMicroelectronics UM0851 Datasheet HTML 177Page - STMicroelectronics UM0851 Datasheet HTML 178Page - STMicroelectronics UM0851 Datasheet HTML 179Page - STMicroelectronics UM0851 Datasheet HTML 180Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 176 / 245 page
background image
Human interface device (HID) drivers
UM0851
176/245
Doc ID 16604 Rev 2
Figure 47.
State machine of touchscreen driver
The touchscreen driver is probed as input driver during Linux boot-up. The driver opens the
ADC and GPIO channels, and starts reading values from the ADC channels by polling in a
100 ms loop. The polling interval (currently 100 ms) of driver is important because it
determines the touchscreen response time.
50 initial readings are performed to estimate a threshold. The touchscreen is considered to
be touched (or pressed) only when the values go above the threshold. If the touchscreen is
pressed, the driver keeps sending coordinates until the touchscreen is untouched (or
released).
Touchscreen calibration
A CLCD panel touchscreen cannot initially return absolutely correct coordinates, it returns
values which need to be adjusted according to the CLCD panel dimensions. For this reason,
calibration is required to get the correct coordinates. The driver sends the raw (un-
calibrated) coordinates. The application layer is responsible for performing the calibration
which can be done using the 'tslib' standard utility 'ts_calibrate'.
Touchscreen driver interface to input layer
In the _init function, which is called either when the module is loaded or when booting the
kernel, the touchscreen driver grabs the required resources. Then it allocates a new input
device structure with input_allocate_device () and sets up input bitfields. In this way the
device driver tells the other parts of the input systems what it is and what events can be
generated or accepted by this input device.
The touchscreen driver enables the Touch and X-Y coordinate information to send to the
user application via the input device.
input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
Then the driver registers the input device structure by calling input_register_device ().
struct input_dev
*input;
input_register_device( input );
Registration of the device adds the 'input' structure to the linked lists of the input driver and
calls the modules _connect functions in the device handler to tell them that a new input
IDLE
RELEASE
Initial default state
Returns to IDLE state from RELEASE state
after finger is removed
RELEASE state is entered when
finger is removed from panel.
Sends an event and changes
state to IDLE
PRESS
PRESS state is entered
when panel is
touched.
Remains in same
state when
touched and sends event
again and again



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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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