Regarding driver interface for user space
Oct. 11, 2012
12:52 p.m.
Hi, What interfaces are provided by device drivers, in general, to user space to access status and other information ? For example, if have enabled rotatry encoder driver and touchscreen driver, how can write code in my application which will process rotatry encoder data like how many relative or absolute rotation happened, if these were clockwise or counter clockwise, etc. And in case of touchscreen driver, touch events ? Thanks, Rahul Bedarkar
Oct. 11, 2012
1:09 p.m.
Hi, if I didn't misunderstood your message I think that a rotary encoder is exposed as a gpio, see http://www.kernel.org/doc/Documentation/input/rotary-encoder.txt Thus you can expose values to userspace using sysfs for example. -- Saluti, Fabio Pozzi
5056
Age (days ago)
5056
Last active (days ago)
1 comments
2 participants
participants (2)
-
Fabio Pozzi -
Rahul Bedarkar