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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-03-09T17:00:17+02:00</updated>

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

		<entry>
		<author><name><![CDATA[mrzephy]]></name></author>
		<updated>2012-03-09T17:00:17+02:00</updated>

		<published>2012-03-09T17:00:17+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6425&amp;p=21117#p21117</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6425&amp;p=21117#p21117"/>
		<title type="html"><![CDATA[Re: Custom class send multiple bytes?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6425&amp;p=21117#p21117"><![CDATA[
Bump in case someone can help me with this, still interested in the answer. Thanks.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5782">mrzephy</a> — Fri Mar 09, 2012 5:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrzephy]]></name></author>
		<updated>2012-02-04T22:42:35+02:00</updated>

		<published>2012-02-04T22:42:35+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6425&amp;p=20879#p20879</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6425&amp;p=20879#p20879"/>
		<title type="html"><![CDATA[Custom class send multiple bytes?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6425&amp;p=20879#p20879"><![CDATA[
Hey,<br /><br />How would I go about sending multiple bytes PC-&gt;AVR using the custom-class example? I guess the data should probably be in usbMsgPtr, but I don't know how I can find out the length of the buffer?<br />And what is the purpose of the wValue and wIndex if you use a buffer also? Can I just use those for my data as well (I need more than 4 bytes though)?<br /><br />This is the code from custom-class that probably has to be changed:<br /><div class="codebox"><p>Code: </p><pre><code>}else if(rq-&gt;bRequest == CUSTOM_RQ_SET_STATUS){<br />        if(rq-&gt;wValue.bytes&#91;0&#93; &amp; 1){    /* set LED */<br />            LED_PORT_OUTPUT |= _BV(LED_BIT);<br />        }else{                          /* clear LED */<br />            LED_PORT_OUTPUT &amp;= ~_BV(LED_BIT);<br />        }<br />    }</code></pre></div><br /><br />Thanks<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5782">mrzephy</a> — Sat Feb 04, 2012 10:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
