Paul Belanger
2018-12-05 19:54:27 UTC
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+***@developer.intra2net.com
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+***@developer.intra2net.com