I want know how configure two interfaces hid for stm32 / cube MX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-10 1:33 AM
hi,
I need to have a code example for understand how have a keyboard and mouse in one project, can you help me please!
- Labels:
-
STM32CubeMX
-
STM32F1 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-10 12:56 PM
Hello @goobinooz​ and welcome to the Community :)
Which device are you using?
I advise you to check the HID example within STM32Cube MCU package relevant to your device.
Have a look at these resources:
- How to implement a USB device custom HID class on STM32 part1 and part 2.
- STM32 USB training - 09.4 USB HID device mouse labs
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-10 1:12 PM
I use STM32F103C8Tx but your example refer to one interface but me I want two interface and the training not responding to my needed, I want emulate a mouse + a keyboard in my code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-10 1:59 PM
You'd need to create a CONFIGURATION descriptor describing ALL the HID devices you want
A "Composite" device would be one offering more than one class. That would use a INTERFACE descriptor
On a MSC Class device you'd allow for multiple LUN (Logical Unit Number), and the OS could then Inquire the nature of each, ie name, size (sector, capacity), type (optical, magnetic, etc), using standard SCSI/ATAPI type command set.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-10 2:09 PM
can I have a exemple of code because my competences are so limited
