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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-10-09T16:48:40+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-10-09T16:48:40+02:00</updated>

		<published>2008-10-09T16:48:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1782&amp;p=6389#p6389</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1782&amp;p=6389#p6389"/>
		<title type="html"><![CDATA[HID Report Descriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1782&amp;p=6389#p6389"><![CDATA[
Since you say that you connect a microphone, I assume that you have a sampling rate of more than 8 kHz. AVR-USB is low speed only. The available transfer rate is not enough for one audio channel.<br /><br />Regarding the HID reports: I usually look for a similar device and check how they did it...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu Oct 09, 2008 4:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-10-05T07:40:16+02:00</updated>

		<published>2008-10-05T07:40:16+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1782&amp;p=6358#p6358</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1782&amp;p=6358#p6358"/>
		<title type="html"><![CDATA[HID Report Descriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1782&amp;p=6358#p6358"><![CDATA[
Hey guys,<br />Trying to make a device that reports ADC readings from a microphone to my pc. The ADC I'm using (Texas Instruments ADS1242) is 24bit accurate, so ideally I would like to transfer the whole 24bits of information. Currently I have it working with this descriptor:<br /><br />PROGMEM char usbHidReportDescriptor[USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH] = { <br />    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)<br />    //0x15, 0x00,                    // LOGICAL_MINIMUM (0)<br />    0x09, 0x00,                    // USAGE (Joystick)<br />    0xa1, 0x01,                    // COLLECTION (Application)<br />    0x05, 0x01,                    //   USAGE_PAGE (Generic Desktop)<br />    0x09, 0x00,                    //   USAGE (Pointer)<br />    0xa1, 0x00,                    //   COLLECTION (Physical)<br />    0x09, 0x36,                    //     USAGE (Slider)<br />    0x27, 0xff, 0xff, 0x00, 0x00,  //     LOGICAL_MAXIMUM (65535)<br />    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)<br />    0x75, 0x10,                    //     REPORT_SIZE (16)<br />    0x95, 0x03,                    //     REPORT_COUNT (3)<br />    0x81, 0x02,                    //     INPUT (Data,Var,Abs)<br />    0xc0,                          //   END_COLLECTION<br />    0xc0                           // END_COLLECTION<br />};<br /><br />I'm having much difficulty trying to figure out how these reports work and what parameters they can have in them, etc. But this one lets me send 3 readings (I have 3 mics) of 16bits each. <br /><br />If I try to change it to 2 readings of 32bits it doesn't work (I change the maximum value also).<br /><br />Basically, how can I transmit more than 16bits for each report?<br />Also when I send with usbSetInterrupt() there is always 8 bits of 0 prepended to my data, and how can I send more than 8 bytes at once?<p>Statistics: Posted by Guest — Sun Oct 05, 2008 7:40 am</p><hr />
]]></content>
	</entry>
	</feed>
