CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

USB definition

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
SuperDave



Joined: 22 May 2008
Posts: 63
Location: Madison, TN

View user's profile Send private message Visit poster's website

USB definition
PostPosted: Fri Jul 24, 2015 12:06 pm     Reply with quote

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

View user's profile Send private message AIM Address

PostPosted: Fri Jul 24, 2015 12:24 pm     Reply with quote

search for

USB_CLASS_SPECIFIC_DESC_LOOKUP_SIZE[0][0]

in the CCS forum files

i got
https://www.ccsinfo.com/forum/viewtopic.php?p=72584
https://www.ccsinfo.com/forum/viewtopic.php?t=36427
https://ccsinfo.com/forum/viewtopic.php?p=61387
https://www.ccsinfo.com/forum/viewtopic.php?t=36884
https://www.ccsinfo.com/forum/viewtopic.php?p=72584
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 24, 2015 2:38 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Fri Jul 24, 2015 9:22 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group