From: Phil H. <ph...@ha...> - 2008-12-18 15:00:28
|
Hello, I am trying to write a driver for an interactive whiteboard. The device needs to be put into a state that will get it sending the pen data. However I have been looking examples on the internet and when using interruptRead or bulkRead you have to specify the number of bytes you are expecting. There are 30+ commands in the protocol with the device with a length which will be unknown until I read the first byte. I want to have a control loop that will read the interrupt and respond to that data. With a user interface sending change of state commands. Does anybody have an example of the use of interruptRead and interruptWrite? Regards Phil Hannent |