DEV Module
Application Program Interface
2-61
typedef struct DEV_Device { /* device specifier */
String name; /* device name */
Void * fxns; /* device function table*/
#if (defined(_54_) && defined(_FAR_MODE)) || defined(_55_)
LgInt devid; /* device ID */
#else
Int devid; /*device ID */
#endif
Ptr params; /* device parameters */
Uns type; /* type of the device */
Ptr devp; /* pointer to device handle */
} DEV_Device;
typedef struct DEV_Attrs {
#if (defined(_54_) && defined(_FAR_MODE)) || defined(_55_)
LgInt devid; /* device id */
#else
Int devid; /* device id */
#endif
Ptr params; /* device parameters */
Uns type; /* type of the device */
Ptr devp; /* device global data ptr */
} DEV_Attrs;
Configuration
Properties
The following list shows the properties that can be configured in a Tconf
script, along with their types and default values. For details, see the DEV
Manager Properties and DEV Object Properties headings. For
descriptions of data types, see Section 1.4,
Instance Configuration Parameters
DEV Manager
Properties
The default configuration contains managers for the following built-in
device drivers:
❏
DGN Driver (software generator driver).
pseudo-device that
generates one of several data streams, such as a sin/cos series or
white noise. This driver can be useful for testing applications that
require an input stream of data.
Name
Type
Default (Enum Options)
comment
String
"<add comments here>"
initFxn
Arg
0x00000000
fxnTable
Arg
0x00000000
fxnTableType
EnumString
"DEV_Fxns" ("IOM_Fxns")
deviceId
Arg
0x00000000
params
Arg
0x00000000
deviceGlobalDataPtr
Arg
0x00000000