public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Where is GET Descriptor in usb-stm32 code
@ 2009-06-13  9:22 GaurangT
  2009-06-13 11:32 ` Chris Holgate
  0 siblings, 1 reply; 2+ messages in thread
From: GaurangT @ 2009-06-13  9:22 UTC (permalink / raw)
  To: ecos-devel


Dear,
         I am new for usb.so I want to develop hid driver using usb-stm32
code and I cann't get anywhere code in GET Descriptor.
Anyone know about hid driver plz help me.
 
Thanks & Regards,
GaurangT
-- 
View this message in context: http://www.nabble.com/Where-is-GET-Descriptor-in-usb-stm32-code-tp24010714p24010714.html
Sent from the Sourceware - ecos-devel mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Where is GET Descriptor in usb-stm32 code
  2009-06-13  9:22 Where is GET Descriptor in usb-stm32 code GaurangT
@ 2009-06-13 11:32 ` Chris Holgate
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Holgate @ 2009-06-13 11:32 UTC (permalink / raw)
  To: GaurangT; +Cc: ecos-devel

GaurangT wrote:

>          I am new for usb.so I want to develop hid driver using usb-stm32
> code and I cann't get anywhere code in GET Descriptor.

If you're writing a USB class driver you don't need to worry about
implementing descriptor handling since this is all taken care of by the
eCos USB framework and the low level driver.  All you need to do is
provide a suitable set of descriptors as described in the documentation
here:

http://ecos.sourceware.org/docs-latest/ref/usbs-enum.html

The STM32 driver also uses this information to automatically set up its
endpoint configuration so even that is taken care of for you.

> Anyone know about hid driver plz help me.

I've not really looked at the HID specs.  It sounds like you'll need to
spend a bit of time looking at the official specs and working out what
endpoint configuration is required for your application before starting
to fill in the descriptor tables for your class driver.  While debugging
my descriptor setup I found it useful to use a Linux box and check the
kernel logs (type 'dmesg') since the Linux kernel driver helpfully
reports the descriptor information.

Chris.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-13 11:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-13  9:22 Where is GET Descriptor in usb-stm32 code GaurangT
2009-06-13 11:32 ` Chris Holgate

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).