|From:||Youness Alaoui <kakaroto@xxxxxxxxxxxxxxxxxxxxxx>|
|To:||Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>|
|Date:||Mon, 26 Mar 2012 13:57:32 -0400|
On Mon, Mar 26, 2012 at 11:28 AM, Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx> wrote:
It seems the read_data_submit was used but not write_data_async. Even in my code, I only do the reads async, but as I was reviewing the library's code, I noticed that small issue.
it seems the ftdi card's output buffer is 2048 bytes, and if it's full, then you can't write anything to it in synchronized big bang mode. So if I wanted to write buffers bigger than 2048 bytes, I was forced to have an async read while writing to the card, otherwise it would lock up until timeout (and report only 2048 bytes were written).