usbSetInterrupt vs HID Report Descriptor
Posted: Wed Oct 27, 2010 11:37 pm
Hi all,
can anybody help me? I have in my code this HID descriptor:
I can send and receive any data to and from PC without any problems using functions:
usbFunctionRead()
usbFunctionWrite()
but i have a BIG problem to send some data with:
usbSetInterrupt()
it's don't work anyway.
I feel that this is related to the HID descriptor, but I do not know how to solve the problem. I need to spontaneously send some data to a PC.
can anybody help me? I have in my code this HID descriptor:
Code: Select all
PROGMEM char usbHidReportDescriptor[22] = { /* USB report descriptor */
0x06, 0x00, 0xff, // USAGE_PAGE (Generic Desktop)
0x09, 0x01, // USAGE (Vendor Usage 1)
0xa1, 0x01, // COLLECTION (Application)
0x15, 0x00, // LOGICAL_MINIMUM (0)
0x26, 0xff, 0x00, // LOGICAL_MAXIMUM (255)
0x75, 0x08, // REPORT_SIZE (8)
0x95, 0x10, // REPORT_COUNT (16) // tu można dać 0x40 np 64 bajtową ramkę tylko trzeba zwięszyć bufor danych do 64
0x09, 0x00, // USAGE (Undefined)
0xb2, 0x02, 0x01, // FEATURE (Data,Var,Abs,Buf)
0xc0 // END_COLLECTION
};
I can send and receive any data to and from PC without any problems using functions:
usbFunctionRead()
usbFunctionWrite()
but i have a BIG problem to send some data with:
usbSetInterrupt()
it's don't work anyway.
I feel that this is related to the HID descriptor, but I do not know how to solve the problem. I need to spontaneously send some data to a PC.