<?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>LPC Microcontrollers中的主题 Re: LPC1837 USBD Custom Class driver help</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-USBD-Custom-Class-driver-help/m-p/614948#M24046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below threads and let me know if this helps.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/forum/nxpusblib-windows-winusb-driver-custom-class" title="https://www.lpcware.com/content/forum/nxpusblib-windows-winusb-driver-custom-class"&gt;nxpUSBlib with windows WinUSB driver custom class | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/forum/usb-dma-engine-bulk-transfer-custom-class" title="https://www.lpcware.com/content/forum/usb-dma-engine-bulk-transfer-custom-class"&gt;USB DMA Engine Bulk Transfer in Custom Class | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/forum/usbd-rom-api-custom-class" title="https://www.lpcware.com/content/forum/usbd-rom-api-custom-class"&gt;USBD ROM API with custom class | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2016 23:15:10 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2016-12-06T23:15:10Z</dc:date>
    <item>
      <title>LPC1837 USBD Custom Class driver help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-USBD-Custom-Class-driver-help/m-p/614947#M24045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a custom class driver using USBD by following the bwtest example...&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some Background:&lt;/P&gt;&lt;P&gt;I am working on a project that requires dumping 1 Mega samples / sec of 16 bit ADC values using the HS USB peripheral on the LPC1837 device...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to modify the USBD bwtest example to achieve this but am running into a number of problems - I am guessing mainly due to my lack of understanding around how the USBD stack works...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;The bwtest example defines a transfer descriptor structure as shown below&lt;/P&gt;&lt;P&gt;/* dTD Transfer Description */&lt;BR /&gt;typedef volatile struct {&lt;BR /&gt; volatile uint32_t next_dTD;&lt;BR /&gt; volatile uint32_t total_bytes;&lt;BR /&gt; volatile uint32_t buffer0;&lt;BR /&gt; volatile uint32_t buffer1;&lt;BR /&gt; volatile uint32_t buffer2;&lt;BR /&gt; volatile uint32_t buffer3;&lt;BR /&gt; volatile uint32_t buffer4;&lt;BR /&gt; volatile uint32_t reserved;&lt;BR /&gt;} DTD_T;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems each buffer (0..4) points to 4096 bytes of data... What if I want to create a buffer with only 512 bytes of data? I am guessing the DTD structure is something hard coded in the USBD stack so I need to follow the same structure format and cannot change the mechanics around how the buffers are processsed?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have a circular buffer setup with 512 byte frames so it would make life a lot simpler if I could process data in 512 byte chunks...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the bwtest example if that helps...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338104"&gt;bwtest.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 10:47:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-USBD-Custom-Class-driver-help/m-p/614947#M24045</guid>
      <dc:creator>michbound</dc:creator>
      <dc:date>2016-11-22T10:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1837 USBD Custom Class driver help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-USBD-Custom-Class-driver-help/m-p/614948#M24046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below threads and let me know if this helps.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/forum/nxpusblib-windows-winusb-driver-custom-class" title="https://www.lpcware.com/content/forum/nxpusblib-windows-winusb-driver-custom-class"&gt;nxpUSBlib with windows WinUSB driver custom class | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/forum/usb-dma-engine-bulk-transfer-custom-class" title="https://www.lpcware.com/content/forum/usb-dma-engine-bulk-transfer-custom-class"&gt;USB DMA Engine Bulk Transfer in Custom Class | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/forum/usbd-rom-api-custom-class" title="https://www.lpcware.com/content/forum/usbd-rom-api-custom-class"&gt;USBD ROM API with custom class | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 23:15:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-USBD-Custom-Class-driver-help/m-p/614948#M24046</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-12-06T23:15:10Z</dc:date>
    </item>
  </channel>
</rss>

