HID Report Descriptor

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Rank 1
Rank 1
Posts: 24
Joined: Tue Nov 06, 2007 10:18 am

HID Report Descriptor

Post by Rukus » Mon Dec 03, 2007 6:01 am

I was wondering if someone might show a input and output in a HID Report Descriptor.

I'm able to create a hid report using X, Y, Z as inputs for the report....but I was wondering if someone could show a Report Descriptor that has both 16bit value inputs as well as 16bit value outputs.

I just cant seem to figure this out, and I've spent alot of time searching on the internet to no avail. I have everything working except this.

Also to implement a interupt out will I have to add my own endpoint descriptor to usbdrv.c? I notice that Christian adds a interupt in endpoint descriptor to the Configuration Descriptor automaticly if USB_CFG_HAVE_INTRIN_ENDPOINT is defined. I don't see a define for example USB_CFG_HAVE_INTROUT_ENDPOINT.

Update: I've been able to get the HID report created so that part is fixed.

Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Tue Dec 04, 2007 10:08 am

If you want more than the most basic configuration descriptor, please put the entire descriptor into your own C module and add


to your usbconfig.h where xxx stands for the length of the descriptor in bytes. Alternatively you can add


in usbconfig.h and implement usbFunctionDescriptor() in your own code. See AVR-Doper for an example.

Please don't modify the driver code itself since that makes it harder to upgrade to new versions. If you think you NEED TO modify the driver, please get in contact with us.

Post Reply