PIP_getWriterNumFrames
Application Program Interface
2-279
Important Note:
This API is being deprecated and will no longer be
supported in the next major release of DSP/BIOS. We recommend that
you use the SIO module instead. The PIP module is still supported in
DSP/BIOS 5.32 and will be supported in any patch releases or minor
enhancements to DSP/BIOS 5.32.
C Interface
Syntax
num = PIP_getWriterNumFrames(pipe);
Parameters
PIP_Handle pipe;
/* pipe object handle*/
Return Value
Uns
num;
/* number of empty frames to be written */
Reentrant
yes
Description
PIP_getWriterNumFrames is a C function that returns the value of the
writerNumFrames element of a pipe object.
Before a function attempts to write to a pipe, it should call
PIP_getWriterNumFrames to ensure at least one empty frame is
available.
Example
See the example for PIP_getReaderAddr, page 2–275.
PIP_getWriterNumFrames
Get number of pipe frames available to be written to