title: FTDI. Would need to know more details about the FT_Write() function
body: <p>A question about the <code>FT_Write()</code> function.</p>
  
  <pre><code>FT_STATUS FT_Write (FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD dwBytesToWrite, LPDWORD lpdwBytesWritten)
  </code></pre>
  
  <p>I wonder about the <code>lpdwBytesWritten</code>.</p>
  
  <p>When will it ever return <code>*lpdwBytesWritten &lt; dwBytesToWrite</code>? Would <code>FT_Write</code> return other than <code>FT_OK</code> in that case?</p>
  
  <p>And how much data can I send in one call to <code>FT_Write</code>? What limit has the <code>dwBytesToWrite</code> parameter?</p>
  
  <p>I have not been able to find the answers to these questions. Have read in the <a href="https://www.ftdichip.com/Support/Knowledgebase/index.html?ft_write.htm" rel="nofollow noreferrer">FTDI Knowledgebase</a> and also in the <a href="https://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer&#39;s_Guide(FT_000071).pdf" rel="nofollow noreferrer">D2XX Programmer's Guide</a>.</p>