Electronic Components Datasheet Search
  English  ▼

X  

UM0851 Datasheet(PDF) 177 Page - STMicroelectronics

Part # UM0851
Description  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 Datasheet(HTML) 177 Page - STMicroelectronics

Back Button 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 UM0851 Datasheet HTML 181Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 177 / 245 page
background image
UM0851
Human interface device (HID) drivers
Doc ID 16604 Rev 2
177/245
device has appeared. Input_register_device () may sleep and therefore must not be called
from an interrupt or with a spinlock held.
When a press occurs on the panel-screen, the driver reports it via the input_report_key ()
call to the input system. The value is interpreted as a truth value: any nonzero value means
key pressed, zero value means key released. The input code generates events only if the
value is different from the previous one. Coordinates are reported using the
input_report_abs () call.
The input_sync () call can be used to tell those who receive the events that we've sent a
complete report. This may not seem important in the one button case, but is quite important
for example for mouse movement, where you do not want the X and Y values to be
interpreted separately, because that would result in a different movement.
7.1.4
Touchscreen usage
The touchscreen driver provides an event interface to the input layer. Evdev is the generic
input event interface. It passes the events generated in the kernel straight to the program,
with timestamps. The devices are in '/dev/input' normally up to event 31.
crw-r--r--
1 root
root
13,
64 Apr
1 10:49 event0
crw-r--r--
1 root
root
13,
65 Apr
1 10:50 event1
crw-r--r--
1 root
root
13,
66 Apr
1 10:50 event2
crw-r--r--
1 root
root
13,
67 Apr
1 10:50 event3
...
For the touchscreen, the device name is '/dev/input/event0' (or '/dev/input/ts') with major 13
and minor 64. The device can be opened using using the open() system call in both
blocking and non-blocking modes. It can be read using the select() system call on the
/dev/input/eventX devices, which will always get a whole number of input events on a read.
Their layout is:
struct input_event {
struct timeval time;
unsigned short type;
unsigned short code;
unsigned int value;
};
'time' is the timestamp, it returns the time at which the event happened.
‘type’ is, for example, EV_REL for relative moment or REL_KEY for a keypress or release.
'code' is the event code, for example REL_X or KEY_BACKSPACE.
'value' is the value carried by the event.
If you are using the touchscreen over Xserver then just providing the device name is
enough.
Table 46.
Configuration options
Configuration option
Comment
CONFIG_INPUT_EVDEV
This option make input device events be
accessible under char device 13:64+ -
/dev/input/eventX in a generic way
CONFIG_INPUT_TOUCHSCREEN
This option enables the touchscreen device



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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