<?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>Processor Expert Software中的主题 How to know if USB data buffer is completely transmitted ?</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-know-if-USB-data-buffer-is-completely-transmitted/m-p/1728933#M5710</link>
    <description>&lt;P&gt;&lt;BR /&gt;I am developing an application based on the LCP5526 microcontroller. From USB,configured as VCOM, I need to receive and transmit a large amount of data (size&amp;gt;20kbyte). The size of the USB buffer is 64 bytes, so I would like to know:&lt;/P&gt;&lt;P&gt;- what happens if I receive a data amount greater than 64 bytes&lt;BR /&gt;- to transmit data, I need to fragment my buffer (called BUFFER A) into multiple parts (called BUFFER B[0], B[1], B[2], ..., B[n]) and transmit them separately. How do I know that a buffer (B[i]) has been completely transmitted before moving on to the next (B[i+1])?&lt;/P&gt;&lt;P&gt;Has anyone of you had a similar problem? In that case, how was it solved? Thank you very much for your help and collaboration Best regards&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 12:46:57 GMT</pubDate>
    <dc:creator>_Ferrari_</dc:creator>
    <dc:date>2023-09-25T12:46:57Z</dc:date>
    <item>
      <title>How to know if USB data buffer is completely transmitted ?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-know-if-USB-data-buffer-is-completely-transmitted/m-p/1728933#M5710</link>
      <description>&lt;P&gt;&lt;BR /&gt;I am developing an application based on the LCP5526 microcontroller. From USB,configured as VCOM, I need to receive and transmit a large amount of data (size&amp;gt;20kbyte). The size of the USB buffer is 64 bytes, so I would like to know:&lt;/P&gt;&lt;P&gt;- what happens if I receive a data amount greater than 64 bytes&lt;BR /&gt;- to transmit data, I need to fragment my buffer (called BUFFER A) into multiple parts (called BUFFER B[0], B[1], B[2], ..., B[n]) and transmit them separately. How do I know that a buffer (B[i]) has been completely transmitted before moving on to the next (B[i+1])?&lt;/P&gt;&lt;P&gt;Has anyone of you had a similar problem? In that case, how was it solved? Thank you very much for your help and collaboration Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 12:46:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-know-if-USB-data-buffer-is-completely-transmitted/m-p/1728933#M5710</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2023-09-25T12:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if USB data buffer is completely transmitted ?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-know-if-USB-data-buffer-is-completely-transmitted/m-p/1801219#M5770</link>
      <description>&lt;P&gt;You can configure USB interrupt that routes to NVIC on LPC552x. Whenever you receive data in USB buffers, the handler gets called. You might find this helpful - &lt;A href="https://github.com/nxp-mcuxpresso/mcux-sdk-middleware-usb/blob/main/docs/MCUXpresso%20SDK%20USB%20Stack%20Composite%20Host%20User's%20Guide.pdf" target="_blank"&gt;https://github.com/nxp-mcuxpresso/mcux-sdk-middleware-usb/blob/main/docs/MCUXpresso%20SDK%20USB%20Stack%20Composite%20Host%20User's%20Guide.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are callbacks that can be configured which are called when you transmit or receive data on USB buffers.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 19:21:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-know-if-USB-data-buffer-is-completely-transmitted/m-p/1801219#M5770</guid>
      <dc:creator>gaurav_sharma</dc:creator>
      <dc:date>2024-02-03T19:21:12Z</dc:date>
    </item>
  </channel>
</rss>

