by support »
Hello,
I suggest reading section 6.1 ("Seekable streams") in the Xillybus host application programming guide that applies to your operating system. The guide is available at the website's Documentation section.
To answer your question in short, you may modify the memwrite and memread example utilities so that they write more than one byte at a time. When multiple bytes are read or written, the first byte relates to the address given by lseek(), and the following bytes relate to the sequential addresses (sort-of autoincrement, or view the memory array as a file one can seek in). So set the address with lseek() and write those 256 bytes, and it will do what you probably wanted.
Regards,
Eli
Hello,
I suggest reading section 6.1 ("Seekable streams") in the Xillybus host application programming guide that applies to your operating system. The guide is available at the website's Documentation section.
To answer your question in short, you may modify the memwrite and memread example utilities so that they write more than one byte at a time. When multiple bytes are read or written, the first byte relates to the address given by lseek(), and the following bytes relate to the sequential addresses (sort-of autoincrement, or view the memory array as a file one can seek in). So set the address with lseek() and write those 256 bytes, and it will do what you probably wanted.
Regards,
Eli