Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Where do I go to learn to make a raw USB request?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where do I go to learn to make a raw USB request?



NVM, I think I found what I needed in the USB Device Interface Guide.

I'm sure I'll be back with more questions.

Thanks!

--
Rick

On Feb 9, 2010, at 03:13:02, Rick Mann wrote:

> Hi. I've fiddled with IOKit and USB in the past, but now I have a need to write actual USB code. I have received a document that describes the raw requests that get sent to this device, and I'd like to learn how to implement one of those.
>
> Can someone point me to the right doc resources in IOKit for this?
>
> I have working object code for this device, it's just buggy. They created a userland driver that provides a C API to the device. I'd like to do the same.
>
> As an example, one of the requests the doc describes is (somewhat obscured so I don't violate the NDA I signed):
>
> FooOperation
>
> bmRequestType	$40
> bmRequest	$0B
> lValue		"bit mode output enable mask, per bit, 0 - input, 1 - output"
> hValue		"bit mode enable $00 - Off"
> lIndex		"$00 or $01 - Port A, $02 - Port B"
> hIndex		$00
> lLength		$00
> hLength		$00
> Data Phase	none
>
> what kind of IOKit request is that? I recognize it as stuff from the USB spec, but if there's sample code that shows a similar request being made, I can learn a lot from that.
>
> I think I know enough to figure out how to find the device and open it, although it's not clear what endpoint I need to talk to, etc (probably just ep 0, I think).
>
> Thanks!
>
> --
> Rick
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Usb mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> 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:

This email sent to email@hidden

References: 
 >Where do I go to learn to make a raw USB request? (From: Rick Mann <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.