2019-06-19 05:22 AM
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