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?

-----Original Message-----
From: Michael Plante [mailto:michael.pla...@gmail.com] 
Sent: 2011年3月18日 10:56
To: libftdi@developer.intra2net.com
Subject: RE: how to set receieve event in libftdi-0.18

Wu, Ruiyu wrote:
>> I don't want to use the polling way.

USB is inherently polled.  If YOU are not polling it manually, then some lower 
layer is polling for you.

Is your concern CPU efficiency, or is it that you want any "complexity" to lie 
somewhere other than in your code?

Regards,
Michael


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscr...@developer.intra2net.com   


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscr...@developer.intra2net.com

Reply via email to