2011/3/18 Wu, Ruiyu (GE Healthcare) <RuiyuWu@xxxxxx>:
> hi, Michael
> thanks for your quick reply
>
> I don't concern the CPU efficiency.
> I just to write a applied program , get the foot switch keycode and sent it to
> another programe named keycode operation pannel.
> Because I don't know when the user will click the foot switch, and no
> hardware interrupt can be used ,
> I hope to set an receieve event in the applied program to notice me.
> Do you have any good idea?
If you want to do it fast, then you can use the FTDI D2xx library under Linux
as well and not use libftdi.
Here they have the Windows and Linux example codes.
http://www.ftdichip.com/Support/Knowledgebase/index.html?ft_seteventnotification.htm
--
Xiaofan
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|