<?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中的主题 Endpoint_Read_Stream_LE question</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint-Read-Stream-LE-question/m-p/524617#M7253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mozmck on Fri Feb 17 16:02:45 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having problems understanding the Endpoint_Read_Stream_LE() function.&amp;nbsp; The documentation in EndpointStream_LPC.h makes sense, but it does not seem to match the actual function.&amp;nbsp; The BytesProcessed variable is simply not used in the function in spite of the documentation, and there seem to be no checks that the data being read out of usb_data_buffer in Endpoint_Read_8() is actually data that was received from the host.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I know that if I call Endpoint_Read_Stream_LE() to read 128 bytes for instance, that I'm actually reading data sent from the host?&amp;nbsp; In addition, is there any way to find out how many un-read bytes are in the buffer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:52:02 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:52:02Z</dc:date>
    <item>
      <title>Endpoint_Read_Stream_LE question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint-Read-Stream-LE-question/m-p/524617#M7253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mozmck on Fri Feb 17 16:02:45 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having problems understanding the Endpoint_Read_Stream_LE() function.&amp;nbsp; The documentation in EndpointStream_LPC.h makes sense, but it does not seem to match the actual function.&amp;nbsp; The BytesProcessed variable is simply not used in the function in spite of the documentation, and there seem to be no checks that the data being read out of usb_data_buffer in Endpoint_Read_8() is actually data that was received from the host.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I know that if I call Endpoint_Read_Stream_LE() to read 128 bytes for instance, that I'm actually reading data sent from the host?&amp;nbsp; In addition, is there any way to find out how many un-read bytes are in the buffer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:52:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint-Read-Stream-LE-question/m-p/524617#M7253</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Endpoint_Read_Stream_LE question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint-Read-Stream-LE-question/m-p/524618#M7254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tuong on Mon Mar 26 19:45:09 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear mozmck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can search Endpoint_Read_Stream_LE() in the tree, then you can see that before Endpoint_Read_Stream_LE() there is always a checking for Endpoint_IsOUTReceived(), this makes sure that the host sent data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, whenever the host sends data to device, interrupts help put these data into the share buffer, then Endpoint_Read_Stream_LE() will read them out from this share buffer. So there is no feature that tells how many unread data left, but there is Endpoint_BytesInEndpoint() that can help you know how many data are there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tuong Nguyen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:52:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint-Read-Stream-LE-question/m-p/524618#M7254</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Endpoint_Read_Stream_LE question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint-Read-Stream-LE-question/m-p/524619#M7255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mozmck on Thu Apr 12 08:15:44 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the note.&amp;nbsp; I completely missed the Endpoint_BytesInEndpoint() function when looking before.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:52:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint-Read-Stream-LE-question/m-p/524619#M7255</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:52:03Z</dc:date>
    </item>
  </channel>
</rss>

