How to parse data from sent by HID_SET_REPORT?

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: How to parse data from sent by HID_SET_REPORT?

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).

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

Top

cron