74 | DMdOpen
DMdOpen
Purpose Use
DMdOpen
to gain access to a DOME device.
Syntax
DMdDev DMdOpen (name)
Return value Device handle if successful; otherwise,
NULL
.
Description
DMdOpen()
opens the DOME device specified by
name
and returns the device handle, which provides access to
the device. To close the DOME device, use the
Close()
member function (page 76) of the returned device handle.
Errors If
DMdOpen()
returns
NULL
, an error message prints to
stderr
.
Example This example opens the DOME device
/dev/
m2pci
0.0
.
#include "domeMd.h"
DMdDev
dev;
dev = DMdOpen ("/dev/m2pci0.0");
.
.
.
(*dev->Close) (dev);
See also
DMdFdOpen, Close, DMdDev Structure
Parameter Type
Name
Description
DChar
*name
Device file of the DOME device,
for example,
"/dev/m2pci0.0"
Summary of Contents for Dome DX/PCI
Page 6: ......