Hello everyone,

I am trying to use libserialport in a project that I'm working on and I find 
that the lack of examples for libserialport a bit frustrating. I guess it's 
because I'm not really savvy when it comes to serial port programming, but I 
would really appreciate some help!

I am porting some windows code to linux and the windows code uses overlapped IO 
to manage the reading and writing. The serial port isn't setup to use 
nonblocking read, so I am using sp_blocking_read and sp_blocking_write to 
read/write.

Reading and writing are done in separate threads and I immediately though about 
using sp_wait and associated functions to manage the reading/writing slots.

What it isn't clear to me is how to use them...  Can anyone provide an example?

Thanks in advance

Andre Moreira
------------------------------------------------------------------------------
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to