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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2015-02-27T16:29:01+02:00</updated>

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

		<entry>
		<author><name><![CDATA[victor_r]]></name></author>
		<updated>2015-02-27T16:29:01+02:00</updated>

		<published>2015-02-27T16:29:01+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=9685&amp;p=29322#p29322</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=9685&amp;p=29322#p29322"/>
		<title type="html"><![CDATA[Zero length HID reports]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=9685&amp;p=29322#p29322"><![CDATA[
Dear Community,<br /><br />Did anyone of you succeed in making a zero bits long HID report? It's useful when, for example, only a notification is needed from device with no other information. It reduces USB bandwidth usage, and leaves more processing time to your MCU, and even more profitable when you don't want to miss your interrupt while processing INT0 by vusb.<br /><br />I tried different variations of the following:<br /><br /><div class="codebox"><p>Code: </p><pre><code>char ReportDescriptor&#91;20&#93; =<br />{<br />    0x06, 0x00, 0xff,              // USAGE_PAGE (Vendor Defined Page 1)<br />    0x09, 0x01,                    // USAGE (Vendor Usage 1)<br />    0xa1, 0x01,                    // COLLECTION (Application)<br />    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)<br />    0x25, 0x00,                    //   LOGICAL_MAXIMUM (0)<br />    0x75, 0x00,                    //   REPORT_SIZE (0)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0x95, 0x01,                    //   REPORT_COUNT (1)<br />    0x81, 0x03,                    //   INPUT (Cnst,Var,Abs)<br />    0xc0                           // END_COLLECTION<br />};<br /></code></pre></div><br /><br />..but with no success. Everything works if report is 1 byte long, but not zero. Is it possible to make a 0 length report?<br /><br />Thank you in advance,<br />Victor<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=20279">victor_r</a> — Fri Feb 27, 2015 4:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
