Question about report descriptor
Posted: Fri Jun 25, 2010 1:01 pm
Okay, so I'm a newbie. So please bear with me on this
This is the report descriptor that can be found on the firmware of the hid-data example.
My question is :
1. why do we need USAGE (UNDEFINED) and what does that mean? We already have USAGE in the beginning.
2. what does FEATURE (Data,Var,Abs,Buf) mean and what function does it do?
3. what does the values 0xb2, 0x02, 0x01 in front of FEATURE mean?
Thanks
This is the report descriptor that can be found on the firmware of the hid-data example.
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, 0x80, // REPORT_COUNT (128)
0x09, 0x00, // USAGE (Undefined)
0xb2, 0x02, 0x01, // FEATURE (Data,Var,Abs,Buf)
0xc0 // END_COLLECTION
My question is :
1. why do we need USAGE (UNDEFINED) and what does that mean? We already have USAGE in the beginning.
2. what does FEATURE (Data,Var,Abs,Buf) mean and what function does it do?
3. what does the values 0xb2, 0x02, 0x01 in front of FEATURE mean?
Thanks