10.07.2015 Views

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>PPBPutWord -- Write 16-bit word into the ping-pong bufferDescription:Prototype:Inputs:Returns:Write 16-bit word into the ping-pong buffershort PPBPutWord();ppb is the generic pointer returned by PPBOpen and used internally to manage the buffers.word is the 16 bit value to writeReturns zero for success or a non-zero error codePPBRead -- Read data from the ping-pong bufferDescription:Prototype:Inputs:Returns:Read data from the ping-pong bufferlong PPBRead(void *ppb, void *buf, long nbyte);ppb is the generic pointer returned by PPBOpen and used internally to manage the buffers.buf is a pointer to a block of data to read from the FIFOnbyte is the number of bytes to writeReturns nbyte for complete success or the number of bytes readPPBWrite -- Write data into the ping-pong bufferDescription:Prototype:Inputs:Returns:Write data into the ping-pong bufferlong PPBWrite(void *ppb, void *buf, long nbyte);ppb is the generic pointer returned by PPBOpen and used internally to manage the buffers.buf is a pointer to a block of data to write data into the FIFOnbyte is the number of bytes to writeReturns nbyte for complete success or the number of bytes writtenPERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.37 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!