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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2015-08-20T22:50:28+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2015-08-20T22:50:28+02:00</updated>

		<published>2015-08-20T22:50:28+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=9989&amp;p=30149#p30149</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=9989&amp;p=30149#p30149"/>
		<title type="html"><![CDATA[USB_BUFSIZE limited to 8?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=9989&amp;p=30149#p30149"><![CDATA[
Can this be changed?<br /><br />#define USB_BUFSIZE     11  /* PID, 8 bytes data, 2 bytes CRC */<br /><br />Because I want to support this in usbFunctionWrite?<br /><br /><div class="codebox"><p>Code: </p><pre><code> 0x09,0x68,    //    Usage Custom Force Data Rep...<br />   0xA1,0x02,    //    Collection Datalink<br />      0x85,0x07,         //    Report ID 7<br />      0x09,0x22,         //    Usage Effect Block Index<br />      0x15,0x01,         //    Logical Minimum 1<br />      0x25,0x28,         //    Logical Maximum 28h (40d)<br />      0x35,0x01,         //    Physical Minimum 1<br />      0x45,0x28,         //    Physical Maximum 28h (40d)<br />      0x75,0x08,         //    Report Size 8<br />      0x95,0x01,         //    Report Count 1<br />      0x91,0x02,         //    Output (Variable)<br />      0x09,0x6C,         //    Usage Custom Force Data Offset<br />      0x15,0x00,         //    Logical Minimum 0<br />      0x26,0x10,0x27,    //    Logical Maximum 2710h (10000d)<br />      0x35,0x00,         //    Physical Minimum 0<br />      0x46,0x10,0x27,    //    Physical Maximum 2710h (10000d)<br />      0x75,0x10,         //    Report Size 10h (16d)<br />      0x95,0x01,         //    Report Count 1<br />      0x91,0x02,         //    Output (Variable)<br />      0x09,0x69,         //    Usage Custom Force Data<br />      0x15,0x81,         //    Logical Minimum 81h (-127d)<br />      0x25,0x7F,         //    Logical Maximum 7Fh (127d)<br />      0x35,0x00,         //    Physical Minimum 0<br />      0x46,0xFF,0x00,    //    Physical Maximum FFh (255d)<br />      0x75,0x08,         //    Report Size 8<br />      0x95,0x0C,         //    Report Count Ch (12d)<br />      0x92,0x02,0x01,    //       Output (Variable, Buffered)<br />   0xC0     ,    //    End Collection</code></pre></div><br /><br />I get 12 bytes of data here and its truncated by 8 because of this. changing the value to 14 didn't help because it seems to be a coded limit in the asm. Is this a USB low speed limitation?<br /><br />Looks like this page talks about it but not sure what main file they are referring to and it seems more about the read function then write.<br /><!-- m --><a class="postlink" href="http://codeandlife.com/2012/02/24/v-usb-outputting-data-with-usbfunctionread/">http://codeandlife.com/2012/02/24/v-usb ... ctionread/</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Thu Aug 20, 2015 10:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
