QextSerialPort is not a Qt class, and even if it were it would be a
question for qt-interest, not qt-creator.

Check the class's home page to find contact information for its creator.

/s/ Adam

On Mon, Jan 11, 2010 at 1:51 PM, Robert Wood
<robert.w...@apostrophe.co.uk> wrote:
> Folks,
>
> Not sure this is quite the right place for this question, but here goes:
>
> I am writing data out to a VCP using qextserialport and all works fine
> in terms of getting the data to and fro the PC. One thing I do want to
> do though, is check when the last byte of data has actually been sent.
> ie The output buffer of the UART IC itself is empty.
>
> Reason I want to do this is that once all the data has gone, I need to
> immediately set the RTS line low, so my little RS485 adapter is put into
> receive mode.
>
> I thought that maybe waitForBytesWritten(int msec) would do the trick
> (and maybe it does), but I can't get it to work.
>
> I've tried
>
> vcp->writeData(&c[0],10);
> while (vcp->waitForBytesWritten(x) == false);
> vcp->setRts(false);
>
> where x is various values, including -1, but it just jumps out and the
> RTS line gets set low too early, the data thus not getting sent out.
>
> Anyone know whether what I want to do is possible?!
>
> Many thanks,
>
> Rob
> _______________________________________________
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
_______________________________________________
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to