How to parse data from sent by HID_SET_REPORT?
Posted: Wed Mar 01, 2017 10:32 pm
I am totally newbie about V-usb. May be my question is dump, sorry if it is.
My report is 25 bytes. For my project I must prepare the feature report according to what asked with USBRQ_HID_SET_REPORT. So I need to parse the data buffer sent by USBRQ_HID_SET_REPORT.
How can I get data sent by USBRQ_HID_SET_REPORT? How to fill dots below? Or should I use something else? Thanks for helping.
case USBRQ_HID_SET_REPORT: // if wLength == 1, should be LED state
{.......... }
return (rq->wLength.word == 1) ? USB_NO_MSG : 0;
case USBRQ_HID_GET_IDLE: // send idle rate to PC as required by spec
My report is 25 bytes. For my project I must prepare the feature report according to what asked with USBRQ_HID_SET_REPORT. So I need to parse the data buffer sent by USBRQ_HID_SET_REPORT.
How can I get data sent by USBRQ_HID_SET_REPORT? How to fill dots below? Or should I use something else? Thanks for helping.
case USBRQ_HID_SET_REPORT: // if wLength == 1, should be LED state
{.......... }
return (rq->wLength.word == 1) ? USB_NO_MSG : 0;
case USBRQ_HID_GET_IDLE: // send idle rate to PC as required by spec