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

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

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-11-01T22:07:45+02:00</updated>

		<published>2011-11-01T22:07:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6156&amp;p=20061#p20061</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6156&amp;p=20061#p20061"/>
		<title type="html"><![CDATA[Bulk-In endpoints]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6156&amp;p=20061#p20061"><![CDATA[
Hi, I want to use Bulk-In endpoints because I think its the compatible counterpart to Linux' usb_bulk_msg().<br />I want to receive data in the way like described in the Driver API:<br /><br /><div class="codebox"><p>Code: </p><pre><code>if(usbInterruptIsReady()){               // only if previous data was sent<br />    uchar *p;<br />    uchar len = getInterruptData(&amp;p);   // obtain chunk of max 8 bytes<br />    if(len &gt; 0)                         // only send if we have data<br />        usbSetInterrupt(p, len);<br />}</code></pre></div><br /><br />Unfortunately I can not find the getInterruptData() method. I do not see how I should implement it by myself.<br />What I want to do is reading the received data in any way that usb_bulk_msg() on host side returns 0.<br /><br />Thanks in advance,<br /><br />Tommy<p>Statistics: Posted by Guest — Tue Nov 01, 2011 10:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
