2016-09-26 09:14 AM
In separate applications I have managed to control the mouse, and the keyboard using the stm32f042. How do I go about combining the two in one application?
I would like my stm32 to be treated as both a keyboard and mouse.Any help is much appreciated, Thanks2016-09-26 12:34 PM
Maybe you can emulate a USB hub plus mouse & keyboard?
2016-09-27 12:06 AM
Hi !
Combining the 2 is easy: in the configuration descriptor you have to specify that you have 2 interfaces (1 for mouse + 1 for keyboard), and merge the 2 interfaces descriptor into the same configuration descriptor.Don't forget to assign a different endpoint for each interface (i.e. EP1 for keyboard and EP2 for mouse).Then you would have to put the 2 report descriptors in your source.