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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-02-13T03:59:35+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-02-13T03:59:35+02:00</updated>

		<published>2012-02-13T03:59:35+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6443&amp;p=20951#p20951</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6443&amp;p=20951#p20951"/>
		<title type="html"><![CDATA[Re: check if device is ready to recieve]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6443&amp;p=20951#p20951"><![CDATA[
Well normal you wait for the host, then send 8 at a time. This is using a interrupt end point.<br /><br />while (!usbInterruptIsReady()){usbPoll(); }usbSetInterrupt((void *)&amp;reportBuffer + 0, 8 ); //once ready send 8 bytes<br />while (!usbInterruptIsReady()){usbPoll(); }usbSetInterrupt((void *)&amp;reportBuffer + 8, 5); // now wait for ready again and send 5 more.<br /><br />I have only ever taken this up to 16 but I dont see why it wont go to 128.<br /><br />while (!usbInterruptIsReady()){usbPoll(); } usbSetInterrupt((void *)&amp;reportBuffer + 0, 8 ); <br />while (!usbInterruptIsReady()){usbPoll(); } usbSetInterrupt((void *)&amp;reportBuffer + 8, 8 );<br />while (!usbInterruptIsReady()){usbPoll(); } usbSetInterrupt((void *)&amp;reportBuffer + 16, 8 ); <br />while (!usbInterruptIsReady()){usbPoll(); } usbSetInterrupt((void *)&amp;reportBuffer + 24, 8 );<br />...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon Feb 13, 2012 3:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ageurtse]]></name></author>
		<updated>2012-02-11T20:11:51+02:00</updated>

		<published>2012-02-11T20:11:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6443&amp;p=20946#p20946</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6443&amp;p=20946#p20946"/>
		<title type="html"><![CDATA[check if device is ready to recieve]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6443&amp;p=20946#p20946"><![CDATA[
hello is there a way to check if my device is ready to recieve the next portion of data. <br />i need to send 8 portion's of 128 bytes. <br /><br />now i wan't to know if the device is ready to recieve the next portion of 128 byte's.<br /><br />i think that my host transmits to much data to the device. so i wan't to control it by telling it to wait for the device.<br /><br />but how can i do that.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6237">ageurtse</a> — Sat Feb 11, 2012 8:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
