Endpoint 0 is the Control endpoint, which is an IOUSBDevice thing (as
opposed to an IOUSBInterface thing) and which must be present in
every USB device. This endpoint does not show up in Prober.
GetNumEndpoints returns the number of endpoints used by the interface
- EXCLUDING DEVICE ENDPOINT ZERO).
Does that help?
Rhoads Hollowell
USB Software Team
Apple Computer, Inc.
On May 31, 2005, at 11:52 AM, Bob Kuehne wrote:
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:
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
_______________________________________________
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