PIP_put
2-282
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
PIP_put(pipe);
Parameters
PIP_Handle pipe;
/* pipe object handle */
Return Value
Void
Reentrant
no
Description
PIP_put puts a frame into a pipe after you have allocated the frame with
PIP_alloc and written data to the frame. The reader can then use PIP_get
to get a frame from the pipe.
After PIP_put puts the frame into the pipe, it runs the function specified
by the notifyReader property of the PIP object. This function should notify
(for example, by calling SWI_andnHook) the object that reads from this
pipe that a full frame is ready to be processed. The notifyReader function
is performed as part of the thread that called PIP_get or PIP_put. To
avoid problems with recursion, the notifyReader function should not
directly call any of the PIP module functions for the same pipe.
Constraints and
Calling Context
❏
When called within an HWI, the code sequence calling PIP_put must
be either wrapped within an HWI_enter/HWI_exit pair or invoked by
the HWI dispatcher.
Example
See the example for PIP_alloc, page 2–271. The example for
HST_getpipe, page 2–147, also uses a pipe with host channel objects.
See Also
PIP_alloc
PIP_free
PIP_get
HST_getpipe
PIP_put
Put a full frame into the pipe