How to parse data from sent by HID_SET_REPORT?

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
mucuraga
Posts: 1
Joined: Wed Mar 01, 2017 10:19 pm

How to parse data from sent by HID_SET_REPORT?

Post by mucuraga » 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

ble___
Posts: 3
Joined: Tue Feb 07, 2017 1:11 am

Re: How to parse data from sent by HID_SET_REPORT?

Post by ble___ » Sun Mar 12, 2017 8:05 pm

Can check my example:
http://ble.athost.net/pub/czujniki_wilg ... are/main.c
Hope link works... I'm not sure what u you want so maybe it's not helpful. Also try read documentation from v-usb (txt and some h files).

Post Reply