[hpsdr] Counting pipes

Jeremy McDermond mcdermj at xenotropic.com
Wed Feb 24 11:44:41 PST 2010


On Feb 24, 2010, at 2:27 PM, george byrkit wrote:

> ***** High Performance Software Defined Radio Discussion List *****
> 
> Dear Jim,
> 
> One counts pipes by 'enumerating' them.  Please look at my C# code in my
> branch of KISS.  I do this.  Endpoints have a 'mailbox number'.  So EP2, EP4
> and EP6 are correct.  And that's 3 endpoints.

You also enumerate the pipes on IOKit on the Mac using the GetPipeProperties call.  Note that the Mac's "pipe" number doesn't have a relation to the "endpoint" number of the USB device.  The Mac's "pipes" are numbered sequentially, and you have to map them to the endpoints by enumerating all of the pipes.  The number of pipes on the device is gotten by the GetNumEndpoints call.  This is an enhancement change for MacHPSDR since right now I just use the assumption that the pipe number -> endpoint number mapping doesn't change (it hasn't so far, but it might, so we should do it correctly).  The control connection (endpoint 0) doesn't have a corresponding pipe number because there is a different call to get to it (ControlRequest).

--
Jeremy McDermond (NH6Z)
Xenotropic Systems
mcdermj at xenotropic.com




 1267040681.0


More information about the Hpsdr mailing list