This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

2 HIDs in one composite USB code

I need to write 2HIds in one composite device in STM32 microcontrollers.One for pointer mouse operation and other one for keypad operation.So i wish to know is it possible to do so?If yes will I need to write 2 separate report descriptors.I am using 2 interfaces and 2 ENDPOINTS (enp1 and enp2). Please help...

Parents
  • > Can you also explain me how to proceed with 2HID report descriptor composite device ??

    The implementation of composite device heavily depends on the USB stack on which you are working. Not just the descriptors, you have to modify
    - Get_Descriptor( HID_Report ) process
    - Enabling additional EP(s)
    etc.

    Which one are you playing?
    - Keil RL-USB
    - ST's STSW-STM32046 - STM32_USB-Host-Device_Lib_V2.1.0
    - ST's STSW-STM32121 - STM32_USB-FS-Device_Lib_V4.0.0
    etc.

    Tsuneo

Reply
  • > Can you also explain me how to proceed with 2HID report descriptor composite device ??

    The implementation of composite device heavily depends on the USB stack on which you are working. Not just the descriptors, you have to modify
    - Get_Descriptor( HID_Report ) process
    - Enabling additional EP(s)
    etc.

    Which one are you playing?
    - Keil RL-USB
    - ST's STSW-STM32046 - STM32_USB-Host-Device_Lib_V2.1.0
    - ST's STSW-STM32121 - STM32_USB-FS-Device_Lib_V4.0.0
    etc.

    Tsuneo

Children