View previous topic :: View next topic |
Author |
Message |
Simbo
Joined: 02 Mar 2008 Posts: 7 Location: UK
|
USB HID and CDC together |
Posted: Mon Oct 18, 2010 6:54 am |
|
|
Hi All
I'm wondering if it would be possible to run both HID and CDC together from within the software.
EG:
A HID keyboard and a CDC Serial port.
I have seen this is possible with other HID devices but I'm wondering if it can be done with other device classes.
thanks
Simon _________________ <~Simbo~> |
|
|
sturnfie
Joined: 26 Apr 2010 Posts: 17 Location: Palatine, IL
|
Re: USB HID and CDC together |
Posted: Mon Oct 18, 2010 10:39 am |
|
|
Simbo wrote: | Hi All
I'm wondering if it would be possible to run both HID and CDC together from within the software.
EG:
A HID keyboard and a CDC Serial port.
I have seen this is possible with other HID devices but I'm wondering if it can be done with other device classes.
thanks
Simon |
I don't think you'd be able to directly enumerate as both classes simultaneously.
Assuming that you want the functionality of both classes on one PIC, you could pull it off by enumerating as a Hub (09h) for the PIC-->HOST enumeration, and then drive the Hub--->CDC/HID interfaces in software. _________________ Lucas Sturnfield
Blog - http://www.sturntech.com/blog |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Mon Oct 18, 2010 10:53 am |
|
|
According to the USB specification, a device class code of 0 in the device descriptor means, that each interface specifies it's own class information. In so far, the usage of multiple independant interfaces in a device is supported by the specification. But of course, there's no support by the CCS USB drivers for this feature, you have to code it on your own. |
|
|
|