Hi all,
I am using SIO for streaming from a device driver. I define statically in my TConf
file let say a doubled buffer (it can be more but not less than two) . Should I retrieve all of my
buffers from the stream using SIO_staticbuf() as many time as number of buffers? i.e.:
nBufs = SIO_nbufs(inputStream);
Int *buff[nBufs ]
for (i = 0; i < nBufs; i++)
{
status = SIO_staticbuf(inputStream, (Ptr*) &(buff[i]));
}
// Push buffers to be accessed by the driver
for (i = 0; i < nBufs; i++)
status = SIO_issue(inputStream, (Ptr* ) buff[i], nMadus, NULL);
while(acq)
{
SIO_reclaim();
// Process
SIO_issue();
}
SIO_idle(); // Flush?
SIO_reclaim();
Thanks for reading!
Jean