Skip to main content
Visitor II
June 19, 2019
Question

Query regarding USBH_HID_GetReport

  • June 19, 2019
  • 1 reply
  • 817 views

Hi I am trying to read a report of USB HID device from my STM32 USB Host code.

I am able to read the report descriptor successfully from USBH_HID_GetHIDReportDescriptor call.

I wanted to read the 0xD0 report value

using

if(USBH_HID_GetReport (phost,

                    0x01,

                    0x07,

                    HID_Handle->pData,

                    HID_Handle->length) == USBH_OK)

However, I see only 4 bytes of data in HID_Handle->pData while all others are zeros.

Please find the attached the report descriptor data.

Can someone tell me the correct way to use USBH_HID_GetReport function and expected values in HID_Handle->pData after this call??

-Pradeep

    This topic has been closed for replies.

    1 reply

    Graduate II
    March 24, 2025

    Ignored by STM support staff for 6 years... wow, no wonder STM will have a short future!