<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/3242" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2009-09-09T23:32:57+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/3242</id>

		<entry>
		<author><name><![CDATA[Grendel]]></name></author>
		<updated>2009-09-09T23:32:57+02:00</updated>

		<published>2009-09-09T23:32:57+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3242&amp;p=10901#p10901</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3242&amp;p=10901#p10901"/>
		<title type="html"><![CDATA[Re: How to use Native Language in Device Name?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3242&amp;p=10901#p10901"><![CDATA[
See <a href="http://www.usb.org/developers/docs/usb_20_052709.zip" class="postlink">USB 2.0 specs</a>, chap. 9.6.7 String Descriptors. The Laguage Identifiers document is located <a href="http://www.usb.org/developers/docs/USB_LANGIDs.pdf" class="postlink">here</a><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=101">Grendel</a> — Wed Sep 09, 2009 11:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Amir_Hashemi]]></name></author>
		<updated>2009-09-09T15:17:45+02:00</updated>

		<published>2009-09-09T15:17:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3242&amp;p=10896#p10896</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3242&amp;p=10896#p10896"/>
		<title type="html"><![CDATA[How to use Native Language in Device Name?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3242&amp;p=10896#p10896"><![CDATA[
Hi every one.<br /><br />I want to use my native language (Farsi فارسی) in naming USB_CFG_DEVICE_NAME.<br />As I know for add a language I have to edit String Descriptor this way:<br /><br /><div class="codebox"><p>Code: </p><pre><code>PROGMEM char usbDescriptorString0&#91;&#93; = { /* language descriptor */<br />    6,          /* sizeof(usbDescriptorString0): length of descriptor in bytes */<br />    3,          /* descriptor type */<br />    0x09, 0x04, /* language index (0x0409 = US-English) */<br />    0x29, 0x04, /* language index (0x0429 = Farsi) */<br />};</code></pre></div><br /><br />I Want my DEVICE_NAME to be امیر with this Unicode(UTF16) in hex : 06 27 06 45 06 cc 06 31<br /><br />Can any one help ? tnx<br /><br />And i have another question that what does this macro do?<br /><div class="codebox"><p>Code: </p><pre><code>#define USB_STRING_DESCRIPTOR_HEADER(stringLength) ((2*(stringLength)+2) | (3&lt;&lt;8))</code></pre></div><br /><br />It is used somewhere like:<br /><br /><div class="codebox"><p>Code: </p><pre><code>#if USB_CFG_DESCR_PROPS_STRING_PRODUCT == 0 &amp;&amp; USB_CFG_DEVICE_NAME_LEN<br />#undef USB_CFG_DESCR_PROPS_STRING_PRODUCT<br />#define USB_CFG_DESCR_PROPS_STRING_PRODUCT   sizeof(usbDescriptorStringDevice)<br />PROGMEM int  usbDescriptorStringDevice&#91;&#93; = {<br />    USB_STRING_DESCRIPTOR_HEADER(USB_CFG_DEVICE_NAME_LEN),<br />    USB_CFG_DEVICE_NAME<br />};<br />#endif</code></pre></div><br /><br />Is it something that i have to change in my work?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2788">Amir_Hashemi</a> — Wed Sep 09, 2009 3:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
