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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-06-25T18:39:45+02:00</updated>

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

		<entry>
		<author><name><![CDATA[frank26080115]]></name></author>
		<updated>2010-06-25T18:39:45+02:00</updated>

		<published>2010-06-25T18:39:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4483&amp;p=14899#p14899</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4483&amp;p=14899#p14899"/>
		<title type="html"><![CDATA[Re: Question about report descriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4483&amp;p=14899#p14899"><![CDATA[
go read the official HID documentation from USB.org<br /><br />1.<br />Every &quot;main item&quot; in the report should have a usage, it's undefined in this case probably because there's no real set meaning to the data.<br />Go read section 5.5<br /><br />2.<br />Every report can be either &quot;input&quot;, &quot;output&quot;, or &quot;feature&quot;. Feature reports are data sent from the host (computer) to the usb device, like when the computer tells a keyboard to turn on the caps-lock LED<br />the (Data,Var,Abs,Buf) means the report contains variable data which is absolute (not relative), I can't recall what &quot;Buf&quot; means (probably buffer).<br /><br />go read section 6.2.2<br /><br />3.<br />0xb2, 0x02, 0x01 means &quot;FEATURE (Data,Var,Abs,Buf)&quot;, the text &quot;FEATURE (Data,Var,Abs,Buf)&quot; is just a comment...<br />those numbers are generated from the HID descriptor tool, according to section 6.2.2.4 shows how those numbers work<br /><br />Everything I said here is explained well in the HID documentation<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2426">frank26080115</a> — Fri Jun 25, 2010 6:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[vsovereign]]></name></author>
		<updated>2010-06-25T13:01:40+02:00</updated>

		<published>2010-06-25T13:01:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4483&amp;p=14895#p14895</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4483&amp;p=14895#p14895"/>
		<title type="html"><![CDATA[Question about report descriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4483&amp;p=14895#p14895"><![CDATA[
Okay, so I'm a newbie. So please bear with me on this <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=":wink:" title="Wink" /> <br /><br />This is the report descriptor that can be found on the firmware of the hid-data example.<br /><br /><div class="codebox"><p>Code: </p><pre><code>PROGMEM char usbHidReportDescriptor&#91;22&#93; = {    /* USB report descriptor */<br />    0x06, 0x00, 0xff,              // USAGE_PAGE (Generic Desktop)<br />    0x09, 0x01,                    // USAGE (Vendor Usage 1)<br />    0xa1, 0x01,                    // COLLECTION (Application)<br />    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)<br />    0x26, 0xff, 0x00,              //   LOGICAL_MAXIMUM (255)<br />    0x75, 0x08,                    //   REPORT_SIZE (8)<br />    0x95, 0x80,                    //   REPORT_COUNT (128)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0xc0                           // END_COLLECTION<br /></code></pre></div><br /><br />My question is :<br />1. why do we need USAGE (UNDEFINED) and what does that mean? We already have USAGE in the beginning.<br />2. what does  FEATURE (Data,Var,Abs,Buf) mean and what function does it do?<br />3. what does the values  0xb2, 0x02, 0x01 in front of FEATURE mean?<br /><br />Thanks  <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=":wink:" title="Wink" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3326">vsovereign</a> — Fri Jun 25, 2010 1:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
