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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-05-28T17:12:51+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-05-28T17:12:51+02:00</updated>

		<published>2008-05-28T17:12:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1467&amp;p=5453#p5453</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1467&amp;p=5453#p5453"/>
		<title type="html"><![CDATA[Bulk OUT endpoint (usbFunctionWriteOut)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1467&amp;p=5453#p5453"><![CDATA[
You need to supply your own configuration descriptor since the default one does not include additional endpoints. See AVR-Doper for an example.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Wed May 28, 2008 5:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[miroslav.talasek]]></name></author>
		<updated>2008-05-19T13:52:49+02:00</updated>

		<published>2008-05-19T13:52:49+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1467&amp;p=5397#p5397</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1467&amp;p=5397#p5397"/>
		<title type="html"><![CDATA[Bulk OUT endpoint (usbFunctionWriteOut)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1467&amp;p=5397#p5397"><![CDATA[
i want use endpoint 2 to writeOut bulk but id doesnt work<br /><br />i have <br /><div class="codebox"><p>Code: </p><pre><code>void usbFunctionWriteOut&#40;uchar *data, uchar len&#41;&#123;<br />....<br /><br />&#125; <br /></code></pre></div><br />and<br /><div class="codebox"><p>Code: </p><pre><code>#define USB_CFG_IMPLEMENT_FN_WRITEOUT   1<br /></code></pre></div><br />but lsusb -v return <br /><div class="codebox"><p>Code: </p><pre><code>Bus 004 Device 100: ID 16c0:3e08<br />Device Descriptor:<br />  bLength                18<br />  bDescriptorType         1<br />  bcdUSB               1.10<br />  bDeviceClass          255 Vendor Specific Class<br />  bDeviceSubClass         0<br />  bDeviceProtocol         0<br />  bMaxPacketSize0         8<br />  idVendor           0x16c0<br />  idProduct          0x3e08<br />  bcdDevice            1.00<br />  iManufacturer           1 miREC.ta<br />  iProduct                2 USBLcd<br />  iSerial                 0<br />  bNumConfigurations      1<br />  Configuration Descriptor:<br />    bLength                 9<br />    bDescriptorType         2<br />    wTotalLength           18<br />    bNumInterfaces          1<br />    bConfigurationValue     1<br />    iConfiguration          0<br />    bmAttributes         0x80<br />      &#40;Bus Powered&#41;<br />    MaxPower               40mA<br />    Interface Descriptor:<br />      bLength                 9<br />      bDescriptorType         4<br />      bInterfaceNumber        0<br />      bAlternateSetting       0<br />      bNumEndpoints           0<br />      bInterfaceClass         0 &#40;Defined at Interface level&#41;<br />      bInterfaceSubClass      0<br />      bInterfaceProtocol      0<br />      iInterface              0<br />Device Status:     0x0000<br />  &#40;Bus Powered&#41;<br /></code></pre></div><br />there is zero endpoints<br />must i uncomment or change any other in usbconfig.h ?<br /><br />on host side <br /><div class="codebox"><p>Code: </p><pre><code> usb_claim_interface&#40;handle, 0&#41;;<br />char bufferOut&#91;255&#93;;<br />   memset&#40;bufferOut,0xff,0xff&#41;;<br />   usb_bulk_write&#40;<br />            handle,             // handle obtained with usb_open&#40;&#41;<br />           USB_ENDPOINT_OUT | 2,// identifies endpoint<br />           bufferOut,             // data buffer<br />           200,     // legth<br />           1000<br />       &#41;;<br /><br /></code></pre></div><br /><br />but messages to ENDPOINT_IN 0 works perfectly<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1104">miroslav.talasek</a> — Mon May 19, 2008 1:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
