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..