Mailing Lists: Apple Mailing Lists

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

endpoints and directions



hi - more experiments with usb questions for you. so i'm using USB Prober to generally grok what interfaces and endpoints a device has. but when i look at it in USB Prober i see something like:

        Interface #0 - Vendor-specific
            Endpoint 0x02 - Bulk Output
            Endpoint 0x86 - Bulk Input

but when i dig into it with iterators around both the interfaces and endpoints, i see two endpoints, but the first claims to be of type kUSBAnyDirn, and the second of kUSBOut. not to mention that the example code i'm using as a base says that endpoint 0 is always the control. color me confused.

anyway, the problem seems to be with the any. if i crank my endpoint iterator to go one past the result of GetNumEndpoints, i do see three endpoints, that, in-order, show: kUSBAnyDirn, kUSBOut, and kUSBIn. based on what i know of the device, this looks more correct.

the question is, however, who's lying? is USB Prober reporting results incorrectly? am i using the iterator and GetNumEndpoints incorrectly? do various things function differently if an endpoint is of kUSBAnyDirn?

thanks!
bob

_______________________________________________
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.