uludaggonul / snow-dots

Automatically exported from code.google.com/p/snow-dots
0 stars 0 forks source link

mexHID queue functions take multiple device IDs #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice if the mexHID open/close/start/stopQueue functions could take 
an array of deviceIDs, to go along with the multiple matching returns from 
issue 36.

Even openQueue could take multiple deviceIDs and reuse the given callback and 
queue depth.  Reusing cookies is less obvious.  In my MCC1208FSAnalogValues 
testing, I am actually reusing cookies since the 1208FS has helper devices with 
the same input interface.  Given that cookies are less likely to be comparable 
across devices, I'm not sure whether openQueue really should take multiple 
deviceIDs.

but close/start/stopQueue certainly can, since they only need the deviceID.

Original issue reported on code.google.com by Benjamin.Heasly on 2 Sep 2010 at 12:39

GoogleCodeExporter commented 8 years ago

Original comment by Benjamin.Heasly on 23 Sep 2010 at 5:46

GoogleCodeExporter commented 8 years ago
I did this in r384. 

openQueue is as it was, requiring one device at a time.  The other *Queue 
functions, start/stop/flush/close all take multiple deviceIDs.

Original comment by Benjamin.Heasly on 23 Sep 2010 at 6:56