Question about HID_DATA / multiple feature reports

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
iphi
Rank 2
Rank 2
Posts: 68
Joined: Mon Jun 25, 2007 11:37 am

Question about HID_DATA / multiple feature reports

Post by iphi » Sat Jan 09, 2010 10:42 pm

Hi,

I have been playing with HID_DATA which works great and I wonder if it is possible to implement more than one feature/ feature report in the AVR device.

If so, how would this look like?

Thanks, Tom

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

Re: Question about HID_DATA / multiple feature reports

Post by christian » Tue Jan 19, 2010 5:56 pm

That's easily possible. See AVR-Doper as an example. In main.c of the firmware, have a look at the report descriptor (usbDescriptorHidReport). It defines various feature reports of different sizes.

Post Reply