libftdi Archives

Subject: RE: how to set receieve event in libftdi-0.18

From: "Wu, Ruiyu (GE Healthcare)" <RuiyuWu@xxxxxx>
To: <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Cc: <michael.plante@xxxxxxxxx>
Date: Fri, 18 Mar 2011 11:11:42 +0800
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.plante@xxxxxxxxx] 
Sent: 2011年3月18日 10:56
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
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+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   


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

Current Thread