LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-13-2014, 10:54 AM   #1
ArunkumarRavi
LQ Newbie
 
Registered: Jul 2014
Location: Chennai,Tamilnadu,India
Distribution: Red Hat Linux 7.3 and MontaVista Linux
Posts: 22

Rep: Reputation: Disabled
Injecting touch event on a touch screen LCD Driver


Hi,
Im tyring to automate touch events done on a LCD touch screen.Requirement given is, the tester or user should give X and Y co-ordinates.These co-ordinates should be injectedor written to the LDC driver,which is here carried out by ADS7846. Is this possible to do this ? pls share your thoughts..
I have been going through the driver code of ADS7846(ads7846.c)..also Im new to this driver coding..My understanding is "the file operations structures defined with read,write,ioctl system calls in the driver coding can only be used by user application.. it the system calls are not defined,then they cannot be used.." Is my understanding correct? pls clarify me..If so then below is the file operation structure from the driver code for your reference..
Code:
struct file_operations ts_fops = {
	read:           ads784x_ts_read_touchscreen,
        poll:           ads784x_ts_poll,
	ioctl:		ads784x_ts_ioctl,
        fasync:         ads784x_ts_fasync,
	open:		ads784x_ts_open,
	release:	ads784x_ts_release,
};
Now with all this,is it possible for me to inject a (X,Y) co-ordinates into to driver so that it will reach the User interface process?This is as part of my academic project.. so your ideas and thoughts will be useful..
 
Old 08-18-2014, 10:23 AM   #2
ophirg
Member
 
Registered: Jan 2008
Location: Israel
Distribution: Kubuntu 13.10
Posts: 134

Rep: Reputation: 34
hi,

The functions in file_operations are not system calls. They are used by some system calls.
Each one has a different behaviour when it's undefined.
there is a good review on file operations in LDD3 section 3.3:
http://www.makelinux.net/ldd3/chp-3-sect-3

hope that helps
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch screen via mtouch: can't get event input medicdave Linux - Hardware 0 06-07-2010 08:31 PM
LXer: A touch screen LCD-PC that is viewable in the Sunlight LXer Syndicated Linux News 0 04-12-2010 03:50 AM
How to abstract touch screen Drag and swipe event? rickyli.pd Linux - Embedded & Single-board computer 1 04-11-2008 04:26 AM
How to abstract touch screen Drag and swipe event? rickyli.pd Programming 0 04-11-2008 02:59 AM
Connection between Touch Screen Device Driver and /dev/input/event ... okeyla Linux - Hardware 2 03-05-2006 05:52 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration