<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trying combined USB audio in and out on LPC1857 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522978#M5614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by davyarm on Thu May 21 13:59:27 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you guys been able to make it work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please provide the descriptors file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:43:21 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:43:21Z</dc:date>
    <item>
      <title>Trying combined USB audio in and out on LPC1857</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522973#M5609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Skyle on Thu Jun 20 03:59:08 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;I am trying to create an example with both a Mic and a speaker, using tje LPC open (1.03) USB lib. Using the support for the built in USB drivers. I have succeeded in geting microphone axample to work, and the speaker example works. But i am now trying to merge them into a combined device. The enumeration fails when I try to connect to a PC.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I am unsure if I just do something wrong with the descripotrs, or if there is something more "devious" with the code. I am unsure about how to handle the structure: USB class info. In the mic example it cintains the In endpoint number, in the speaker example it contains the out endpoint number (same?) and by looking at the initi code where the structure is referenced, it seems not to be possible to finn in both endpoint variables.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Hope someone has an example to share.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;/Skyle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522973#M5609</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trying combined USB audio in and out on LPC1857</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522974#M5610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Paul on Thu Jun 20 07:52:32 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Skyle&lt;BR /&gt;&lt;SPAN&gt;You will need to create descriptors defining your product as a composite device.&amp;nbsp; You will find an app note on this subject at: &amp;lt;a href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Fan11018-usb-composite-device-lpc134x-software-v20" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/an11018-usb-composite-device-lpc134x-software-v20&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Fan11018-usb-composite-device-lpc134x-software-v20" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/an11018-usb-composite-device-lpc134x-software-v20&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;Although the app note is written for a different device, and different classes,&amp;nbsp;the process is the same.&lt;BR /&gt;If you do a search for composite devices&amp;nbsp;on the LPCware&amp;nbsp;forum, and other places on web, you will find lots of information about composite USB devices.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:43:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522974#M5610</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying combined USB audio in and out on LPC1857</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522975#M5611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Fri Jun 21 05:44:02 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;combined USB audio in and out&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, you may have a composite device of two pairs of audio interfaces, bound by IAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Configuration descriptor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- IAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Audio Control interface / headaer / input-feature-output terminal&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Audio Streaming interface (zero bandwidth) / interface / CS inteface / Format type / endpoint / CS endpoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- IAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Audio Control interface / headaer / input-output terminal&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Audio Streaming interface (zero bandwidth) / interface / CS inteface / Format type / endpoint / CS endpoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But more popular method is,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You may have additional streaming interface under single audio control interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Configuration descriptor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Audio Control interface / headaer / input-feature-output terminal (OUT) / input-output terminal (IN)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Audio out Streaming interface (zero bandwidth) / interface / CS inteface / Format type / endpoint / CS endpoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Audio in Streaming interface (zero bandwidth) / interface / CS inteface / Format type / endpoint / CS endpoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Start with the descriptor set of the speaker example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Drag in these descriptors from the microphone example,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Copy the input and output terminal descriptors of microphone, to the end of Audio Control interface&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Append entire Audio IN Streaming interface set at the end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Tune these descriptor fields&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Configuration: wTotalLenth (sum up the size of all of descriptors), bNumInterfaces (3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- AC header: wTotalLength (add the size of input and output terminal descriptors)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- input terminal (copied): bTerminalID (4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- output terminal (copied): bTerminalID (5), bSourceID (4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Interface (straming in, zero-bandwidth): bInterfaceNumber (2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Interface (straming in, alternate): bInterfaceNumber (2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- CS interface (straming in): bTerminalLink (5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Endpoint (straming in): bEndpointAddress&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On Windows, you would be better to assign another VID/PID to the device,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or if you wouldn't change the VID/PID, delete (uninstall) existing device instances of this VID/PID,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to make your new configuration recognized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:43:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522975#M5611</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trying combined USB audio in and out on LPC1857</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522976#M5612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Skyle on Mon Jun 24 07:21:34 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;This suggestion is close to what I was already testing, I have now managed to get it enumerated as a combined device with speaker and mic.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;But the transfer does not work, if i look at the function&amp;nbsp;UsbdAdc_Init it seems to be made to work with either one out endpoint or one in endpoint, the same goes for several of the other functions that are being used from the usbd_adcuser.c file.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Maybe I should try with the non rommed version of the stack?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:43:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522976#M5612</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trying combined USB audio in and out on LPC1857</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522977#M5613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Mon Jun 24 09:37:10 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Assign different endpoint number to the endpoints, each other.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;LPCOpen (and nxpUSBlib) has specific restriction on the endpoints assignment: just one endpoint, IN or OUT, on single endpoint number. Neither USB on-chip driver nor hardware have such a restriction.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Anyway, why do you need LPCOpen over the USB on-chip driver?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Tsuneo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:43:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522977#M5613</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trying combined USB audio in and out on LPC1857</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522978#M5614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by davyarm on Thu May 21 13:59:27 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you guys been able to make it work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please provide the descriptors file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:43:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Trying-combined-USB-audio-in-and-out-on-LPC1857/m-p/522978#M5614</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:43:21Z</dc:date>
    </item>
  </channel>
</rss>

