hi
i use hid-data example with 2 reportid .
how can i get data from pc in avr ?
in usbFunctionSetup
rq->wIndex.bytes[1];
is return report id ?
how can i get hid buffer data ?
thanks
hid-data comunication problem
-
- Posts: 6
- Joined: Sun Oct 21, 2018 12:30 am
Re: hid-data comunication problem
I think the first byte it contain the report ID .
Re: hid-data comunication problem
yeah,
usbRequest_t *rq = (void *)data;
char rID = rq->wValue.bytes[0];//report ID;
then you can do
if(rq->bRequest == USBRQ_HID_GET_REPORT)//features reports.
and
if (rID == 1)
wait.. This is a 2 year old post? LOL Don't bump those man...
usbRequest_t *rq = (void *)data;
char rID = rq->wValue.bytes[0];//report ID;
then you can do
if(rq->bRequest == USBRQ_HID_GET_REPORT)//features reports.
and
if (rID == 1)
wait.. This is a 2 year old post? LOL Don't bump those man...
Re: hid-data comunication problem
First byte is report ID if there are report IDs in the report. In the case you do not use Report ID's, the first byte is first data.