by support »
Hello,
To begin with, I see only three devices files, so I assume you're using a custom IP core. Otherwise, it's quite peculiar why there are only three.
As for the I/O problem, I suggest taking a look on the Xillybus host application programming guide for Linux, on the web site's Documentation part:
http://xillybus.com/downloads/doc/xilly ... _linux.pdfSection 3.2 discusses the best practices for reading data (which are in principle the common UNIX practices).
Looking at your code, you're using the C++ ::read() method mixed with a non-C++ open(), and it's not clear why you're passing it the O_RDONLY argument. I'm a bit surprised it even compiled.
It doesn't look like you're going to do a lot of C++ magic, so I suggest sticking to the plain C API. And follow the programming guidelines.
Regards,
Eli
Hello,
To begin with, I see only three devices files, so I assume you're using a custom IP core. Otherwise, it's quite peculiar why there are only three.
As for the I/O problem, I suggest taking a look on the Xillybus host application programming guide for Linux, on the web site's Documentation part:
http://xillybus.com/downloads/doc/xillybus_host_programming_guide_linux.pdf
Section 3.2 discusses the best practices for reading data (which are in principle the common UNIX practices).
Looking at your code, you're using the C++ ::read() method mixed with a non-C++ open(), and it's not clear why you're passing it the O_RDONLY argument. I'm a bit surprised it even compiled.
It doesn't look like you're going to do a lot of C++ magic, so I suggest sticking to the plain C API. And follow the programming guidelines.
Regards,
Eli