Hi, Is there a way to get a callback when there is data available to read?
As far as I can see, you can either: - poll ftdi_read_data() - create a ftdi_transfer_control with ftdi_read_data_submit() and poll that (with the additional drawback that you need to know the amount of data you want to read beforehand) - directly use libusb, defeating the point of libftdi somewhat. This would be nice for asynchronous writes as well, maybe even with some sort of intermediate progress callback. ftdi_readstream() seems to go into the right direction but uses a special synchronous FIFO mode. Cheers, Sam -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
