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 CCS Technical Support

Landuage ID (String0 Descriptor)

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



Joined: 17 Sep 2004
Posts: 133
Location: UK

View user's profile Send private message

Landuage ID (String0 Descriptor)
PostPosted: Mon Oct 18, 2004 9:07 am     Reply with quote

Talking about the USB design, String zero descriptor.
Where can I get the table of language codes like for example:
Supported Language Code Zero
(e.g. 0x0409 English - United States)
Supported Language Code One
(e.g. 0x0c09 English - Australian)

I need other languages as well.

And another question, if I can:
in the CCS example code of USB,
why there is '0' defined after every character in string descriptors,
which makes the lengths of strings almost twice longer?

Thanks a lot
_________________
Alex
bfemmel



Joined: 18 Jul 2004
Posts: 40
Location: San Carlos, CA.

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

PostPosted: Mon Oct 18, 2004 1:21 pm     Reply with quote

Alex,

The supported language is an operating system thing. I don't believe it has anything to do with the USB operation. See the Microsoft page at http://www.microsoft.com/globaldev/reference/oslocversion.mspx for the most current list.

Bruce
Guest








PostPosted: Tue Oct 19, 2004 1:51 am     Reply with quote

Did you read the USB spec about this subject Question Question

In paragraph 9.6.7 of USB Specification v2.0, the list of LANGID's is mentoined.
alexz



Joined: 17 Sep 2004
Posts: 133
Location: UK

View user's profile Send private message

PostPosted: Tue Oct 19, 2004 1:55 am     Reply with quote

Yes, I have found it now, thank you.

Does anybody know what exactly the string indexes are in the device descriptor field?
And how it works with strings you define?
I have seen in the CCS example, those are defined as 1,2,0.
What does it mean? How can it point to strings?
_________________
Alex
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