Used to create User defined devices.
| per-instance config parameters |
 |
| XDCscript usage |
meta-domain |
var params = new UDEV.Params;
// Instance config-params object
params.comment = String null;
// Comment to describe the user device
params.deviceGlobalDataPtr = Ptr 0;
// Global device data pointer
params.deviceId = Ptr null;
// The device id
params.fxnTable = String null;
// The name of the device functions table for the driver or mini-driver
params.fxnTableType = String "DEV_Fxns";
// Type of function table used by the driver to which this
device interfaces
params.initFxn = String null;
// The function to run to initialize this device
params.name = String "";
// Name of the user device
params.params = Ptr null;
// Additional params to the device
params.stackingDevice = Bool false;
//
| config UDEV.comment // per-instance |
 |
Comment to describe the user device
| XDCscript usage |
meta-domain |
var params = new UDEV.Params;
...
params.comment = String null;
| config UDEV.deviceGlobalDataPtr // per-instance |
 |
Global device data pointer
| XDCscript usage |
meta-domain |
var params = new UDEV.Params;
...
params.deviceGlobalDataPtr = Ptr 0;
DETAILS
The purpose of such a value is driver-specific.
The default is NULL.
| config UDEV.deviceId // per-instance |
 |
The device id
| XDCscript usage |
meta-domain |
var params = new UDEV.Params;
...
params.deviceId = Ptr null;
DETAILS
The purpose of such a value is driver-specific.
The default is NULL.
| config UDEV.fxnTable // per-instance |
 |
The name of the device functions table for the driver or mini-driver
| XDCscript usage |
meta-domain |
var params = new UDEV.Params;
...
params.fxnTable = String null;
DETAILS
The default is NULL.
| config UDEV.fxnTableType // per-instance |
 |
Type of function table used by the driver to which this
device interfaces
| XDCscript usage |
meta-domain |
var params = new UDEV.Params;
...
params.fxnTableType = String "DEV_Fxns";
DETAILS
The options are "DEV_Fxns" or "IOM_Fxns".
The default is "DEV_Fxns".
| config UDEV.initFxn // per-instance |
 |
The function to run to initialize this device
| XDCscript usage |
meta-domain |
var params = new UDEV.Params;
...
params.initFxn = String null;
DETAILS
The default is NULL.
| config UDEV.name // per-instance |
 |
Name of the user device
| XDCscript usage |
meta-domain |
var params = new UDEV.Params;
...
params.name = String "";
| config UDEV.params // per-instance |
 |
Additional params to the device
| XDCscript usage |
meta-domain |
var params = new UDEV.Params;
...
params.params = Ptr null;
DETAILS
The purpose of such a value is driver-specific.
The default is NULL.
| per-instance creation |
 |
| XDCscript usage |
meta-domain |
// Allocate instance config-params
params.config = ...
// Assign individual configs
var inst = UDEV.create( String name, params );
// Create an instance-object