<?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/6123" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-11-10T18:45:48+02:00</updated>

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

		<entry>
		<author><name><![CDATA[1.21Gigawatts]]></name></author>
		<updated>2011-11-10T18:45:48+02:00</updated>

		<published>2011-11-10T18:45:48+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20146#p20146</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20146#p20146"/>
		<title type="html"><![CDATA[Re: main.c on v-usb]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20146#p20146"><![CDATA[
Oh, you really do need to do some reading about the C language before you go any further. Particularly, your question about the two len variables points to a lack of understanding about a variable's scope. There's plenty of tutorials on the web, or you can get any number of books. But you're going to be lost if you just try to dice into this code.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5999">1.21Gigawatts</a> — Thu Nov 10, 2011 6:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ardiansyah_mrit]]></name></author>
		<updated>2011-11-10T09:58:07+02:00</updated>

		<published>2011-11-10T09:58:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20140#p20140</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20140#p20140"/>
		<title type="html"><![CDATA[Re: main.c on v-usb]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20140#p20140"><![CDATA[
thank's all for reply's, <br /><br />i undenrstand now, but can you explain to me about uchar len in this function and uchar len in usbfunctionWrite()..??<br /><br />is there any difference between these two variables ?<br /><br />what the meaning about <br />len was 2 =&gt; [byte 0] [byte 1]...??<br /><br />best regard<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5842">ardiansyah_mrit</a> — Thu Nov 10, 2011 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2011-11-10T03:12:24+02:00</updated>

		<published>2011-11-10T03:12:24+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20134#p20134</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20134#p20134"/>
		<title type="html"><![CDATA[Re: main.c on v-usb]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20134#p20134"><![CDATA[
uchar *data : This is nothing more then a pointer to address in memory. uchar ( unsigned char ) is the size you need to hold that address. Pointers are a big part of C, I suggest you read up on them. <br /><br />uchar len : Here we are setting len to a type uchar ( not a pointer this time ).  len will be the length of the data in this case. <br /><br />So you use data to point to the data in memory and len to figure out how long the data goes.<br /><br />If len was 2 <br />data -&gt; [byte 0][byte 1]<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Thu Nov 10, 2011 3:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[1.21Gigawatts]]></name></author>
		<updated>2011-11-10T01:34:28+02:00</updated>

		<published>2011-11-10T01:34:28+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20133#p20133</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20133#p20133"/>
		<title type="html"><![CDATA[Re: main.c on v-usb]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=20133#p20133"><![CDATA[
uchar is how some compilers designate an unsigned char, equivalent to winavr's uint8_t.<br /><br />Does that help?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5999">1.21Gigawatts</a> — Thu Nov 10, 2011 1:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Daid]]></name></author>
		<updated>2011-10-25T12:05:42+02:00</updated>

		<published>2011-10-25T12:05:42+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6123&amp;p=19981#p19981</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=19981#p19981"/>
		<title type="html"><![CDATA[Re: main.c on v-usb]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=19981#p19981"><![CDATA[
Then learn a bit about C before you touch micro-controllers.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5154">Daid</a> — Tue Oct 25, 2011 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ardiansyah_mrit]]></name></author>
		<updated>2011-10-25T06:41:10+02:00</updated>

		<published>2011-10-25T06:41:10+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6123&amp;p=19977#p19977</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=19977#p19977"/>
		<title type="html"><![CDATA[main.c on v-usb]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6123&amp;p=19977#p19977"><![CDATA[
any one i need help about below meaning code :<br /><div class="codebox"><p>Code: </p><pre><code>uchar   usbFunctionRead(uchar *data, uchar len) //??????????????? *data dan len<br />{<br />    if(len &gt; bytesRemaining)<br />        len = bytesRemaining;<br />    eeprom_read_block(data, (uchar *)0 + currentAddress, len);<br />    currentAddress += len;<br />    bytesRemaining -= len;<br />    return len;<br />}</code></pre></div><br /><br />i'm not understand about &quot;(uchar *data, uchar len)&quot;..??<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5842">ardiansyah_mrit</a> — Tue Oct 25, 2011 6:41 am</p><hr />
]]></content>
	</entry>
	</feed>
