libftdi Archives

Subject: Interruptible reads from libftdi

From: Paul Belanger <paulirino@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 5 Dec 2018 14:54:27 -0500
Hello,

I'm trying to use the libftdi library (version 1.2) to interface with various
hardware devices for my embedded project.

I want to implement the communications class in such a way that pending read and
write requests can be cancelled externally from another thread. I have a few
questions about the ftdi_data_transfer_done and ftdi_data_transfer_cancel
functions:

1. Will a call to ftdi_data_transfer_done block until the read/write operation
   is completed?

2. If so, is it safe to call ftdi_data_transfer_cancel using a pointer to an
   ftdi_transfer_control structure that is currently being used in a call to
   ftdi_data_transfer_done?

3. Otherwise, is there another way to perform interruptible reads from the FTDI
   device?

Thank you,

Paul Belanger.

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • Interruptible reads from libftdi, Paul Belanger <=