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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-08-06T18:48:03+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-08-06T18:48:03+02:00</updated>

		<published>2012-08-06T18:48:03+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6768&amp;p=22380#p22380</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6768&amp;p=22380#p22380"/>
		<title type="html"><![CDATA[Re: Custom Class Interrupt In]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6768&amp;p=22380#p22380"><![CDATA[
Maybe I'm not understanding you right here but the in endpoint is used like so.<br /><br /><div class="codebox"><p>Code: </p><pre><code>while (!usbInterruptIsReady())<br />{ //poll when not ready<br />  usbPoll(); <br />}<br />usbSetInterrupt(reportBuffer, 8 );//send the data<br /></code></pre></div><br /><br />This is using an in interrupt method.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon Aug 06, 2012 6:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[markjuggles]]></name></author>
		<updated>2012-07-04T22:04:20+02:00</updated>

		<published>2012-07-04T22:04:20+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6768&amp;p=21968#p21968</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6768&amp;p=21968#p21968"/>
		<title type="html"><![CDATA[Custom Class Interrupt In]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6768&amp;p=21968#p21968"><![CDATA[
My goal is to have an I/O device accessible from LibUsbDotNet.  This library does not seem to support control transfers so my focus has  been on interrupt transfers.<br /><br />I have created a custom class device with vusb-20120109 which has both Interrupt In and Interrupt Out endpoints.  The device is an ATtiny2313 running at 12 MHz.<br /><br />Interrupt Out is working well:  The PC can control an LED with the LSB of the data sent.<br /><br />Interrupt In is not working at all.  Another LED is setup to toggle whenever usbFunctionRead(), usbDeviceRead(), or usbPoll() are called but it does not toggle.  The LibUsbDotNet application is returning &quot;Error IoTimedOut reading USB&quot;.<br /><br />How exactly is the Interrupt In endpoint supposed to work?   Which function is responsible for supplying the data?  Is there a custom class example?<br /><br />Thank you for any suggestions you can provide.  Below is the endpoint part of a lsusb -v command on Linux.<br /><br />Mark<br /><br /><br />      Endpoint Descriptor:<br />        bLength                 7<br />        bDescriptorType         5<br />        bEndpointAddress     0x81  EP 1 IN<br />        bmAttributes            3<br />          Transfer Type            Interrupt<br />          Synch Type               None<br />          Usage Type               Data<br />        wMaxPacketSize     0x0008  1x 8 bytes<br />        bInterval              10<br />      Endpoint Descriptor:<br />        bLength                 7<br />        bDescriptorType         5<br />        bEndpointAddress     0x01  EP 1 OUT<br />        bmAttributes            3<br />          Transfer Type            Interrupt<br />          Synch Type               None<br />          Usage Type               Data<br />        wMaxPacketSize     0x0008  1x 8 bytes<br />        bInterval              10<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2410">markjuggles</a> — Wed Jul 04, 2012 10:04 pm</p><hr />
]]></content>
	</entry>
	</feed>
