2020-07-09 11:15 PM
Hi
i have a custom HID device with two interface configurations.i use cubeMX create project. if can enumerate device but can't communicate.the program stop at
status = USBH_HID_GetReport(phost, 0x01U, 0U, HID_Handle->pData, (uint8_t)HID_Handle->length); in usbh_hid.c
1. Can USB HOST LIB support this device?
2.Is i need to rewrite usbh_hid.c?
3. can you give me some advices or examples?
2020-07-10 02:47 PM
Do you need to use both interfaces or only one?
The HID examples available from ST show use of only one interface, but there are other examples that show use of several interfaces.
Answers to your questions:
1 - Yes (the "HAL drivers" layer).
2 - Yes. Sorry if this is not the answer you hoped for.
3. Please review the HID examples in the ST "cube" package. More projects can be found on GitHub.
Regards,
-- pa
2020-07-12 07:38 PM
thank you very much!
i will review the examples and visite GitHub. thank again!