View previous topic :: View next topic |
Author |
Message |
SuperDave
Joined: 22 May 2008 Posts: 63 Location: Madison, TN
|
USB definition |
Posted: Fri Jul 24, 2015 12:06 pm |
|
|
Where is
USB_CLASS_SPECIFIC_DESC_LOOKUP_SIZE[0][0]
defined?
It's used in class descriptor 1 (HID). |
|
|
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jul 24, 2015 2:38 pm |
|
|
Or, use a text search utility program such as Examine32, or use the Windows F3 Find feature. Search this CCS directory:
Quote: | c:\program files\picc\drivers |
Then you find it's declared in this file:
c:\program files\picc\drivers\usb_desc_hid.h
c:\program files\picc\drivers\usb_desc_hid_cdc.h
c:\program files\picc\drivers\usb_desc_kbmouse.h
c:\program files\picc\drivers\usb_desc_key_cdc.h
and several more. |
|
|
SuperDave
Joined: 22 May 2008 Posts: 63 Location: Madison, TN
|
|
Posted: Fri Jul 24, 2015 9:22 pm |
|
|
One would think that that was the case. I did and I searched previously.
Here what one finds in usb_desc_hid.h searching on USB_CLASS_SPECIFIC_DESC_LOOKUP_SIZE at line 186
const int8 USB_CLASS_SPECIFIC_DESC_LOOKUP_SIZE[USB_NUM_CONFIGURATIONS][1] =
{
//config 1
//interface 0
32
};
Note: USB_NUM_CONFIGURATIONS in this case equals 1, so a quick read looks like the [1][1] value is being set to 32, but in a less than immediately obvious way, this both establishes the "array" with exactly one int8 element which is therefor at [0][0] and sets that value to 32.
Now a lot older and a little bit smarter.
then at line 243
USB_CLASS_SPECIFIC_DESC_LOOKUP_SIZE[0][0], 0x00, //length of report descriptor uses the value. |
|
|
|