Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using FindNextPipe question



Hi,

I have a device which on a USB 2.0 bus shows that it has
an Isochronous Input endpoint as
Attributes: 0x84 (IN)
Attributes: 0x01 (Isochronous)
Max Packet Size: 4
Polling Interval: 4 ms <<<<---------------------------- should be 1


The sample rate is expressed as a 16.16 format rather than the older 10.14 format.

In the following snippet
assocEndpoint.direction = kUSBIn;
assocEndpoint.maxPacketSize = 4;
assocEndpoint.interval = 0xff;

assocPipe = streamInterface->FindNextPipe(NULL, &assocEndpoint);

if (assocPipe)
// following line crashes quite often
result = assocPipe->Read(reqSRDesc, nextSynchReadFrame, 1, &srFrame, &completion);



Questions
a. In the case of USB 2.0 would I be getting the correct pipe using FindNextPipe()?
b. What could be causing the crash when Read is called?


Thanks,

David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.