Dxx_open
2-76
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_open(device, name);
Parameters
DEV_Handle device;
/* driver handle */
String
name;
/* device name */
Return Value
Int
status;
/* result of operation */
Description
Dxx_open is called by SIO_create to open a device. Dxx_open opens a
device and returns an error code indicating success (SYS_OK) or failure.
The device parameter points to a DEV_Obj whose fields have been
initialized by the calling function (that is, SIO_create). These fields can be
referenced by Dxx_open to initialize various device parameters.
Dxx_open is often used to attach a device-specific object to
device->object. This object typically contains driver-specific fields that
can be referenced in subsequent Dxx driver calls.
name is the string remaining after the device name has been matched by
SIO_create using DEV_match.
See Also
Dxx_open
Open device