Dxx_idle
2-72
Important Note:
This API will no longer be supported in the next major
release of DSP/BIOS. We recommend that you use the IOM driver
interface instead. See the
DSP/BIOS Driver Developer’s Guide
(SPRU616). This API 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
status = Dxx_idle(device, flush);
Parameters
DEV_Handle device;
/* device handle */
Bool
flush;
/* flush output flag */
Return Value
Int
status;
/* result of operation */
Description
Dxx_idle places the device associated with device into its idle state and
returns an error code indicating success (SYS_OK) or failure. Devices
are initially in this state after they are opened with Dxx_open.
Dxx_idle returns the device to its initial state. Dxx_idle should move any
frames from the device->todevice queue to the device->fromdevice
queue. In SIO_ISSUERECLAIM mode, any outstanding buffers issued to
the stream must be reclaimed in order to return the device to its true initial
state.
Dxx_idle is called by SIO_idle, SIO_flush, and SIO_delete to recycle
frames to the appropriate queue.
flush is a boolean parameter that indicates what to do with any pending
data of an output stream. If flush is TRUE, all pending data is discarded
and Dxx_idle does not block waiting for data to be processed. If flush is
FALSE, the Dxx_idle function does not return until all pending output data
has been rendered. All pending data in an input stream is always
discarded, without waiting.
Constraints and
Calling Context
❏
device must be bound to a device by a prior call to Dxx_open.
See Also
Dxx_idle
Idle device