makestuff / libfpgalink

LIB:Library for interacting with an FPGA over USB
https://github.com/makestuff/libfpgalink/wiki/FPGALink
GNU Lesser General Public License v3.0
82 stars 25 forks source link

Using flReadChannelAsyncAwait to implement asynchronous I/O with FPGA board #36

Open Naman-ntc opened 6 years ago

Naman-ntc commented 6 years ago

We want to wait for a certain interval while reading on a particular channel and move ahead if no data is sent by the board in that interval. We are, however, stuck in this simple implementation. We tried changing the timeout value in libfpgalink.h's flReadChannelAsyncSubmit from U32MAX to 5000 (our required timeout) and then ran make clean followed by make deps in the directory. However, while running our custom main.c file, we were receiving data in unexpected order. Could you kindly suggest some examples that we could refer to?