DEV Module
Application Program Interface
2-63
❏
function table type
. Choose the type of function table used by the
driver to which this device interfaces. Use the IOM_Fxns option if you
are using the DIO class driver to interface to a mini-driver with an
IOM_Fxns function table. Otherwise, use the DEV_Fxns option for
other drivers that use a DEV_Fxns function table and Dxx functions.
You can create a DIO object only if a UDEV object with the IOM_Fxns
function table type exists.
Tconf Name: fxnTableType
Type: EnumString
Options:
"DEV_Fxns", "IOM_Fxns"
Example:
myDev.fxnTableType = "DEV_Fxns";
❏
device id
. Specify the device ID. If the value you provide is non-zero,
the value takes the place of a value that would be appended to the
device name in a call to SIO_create. The purpose of such a value is
driver-specific.
Tconf Name: deviceId
Type: Arg
Example:
myDev.deviceId = prog.extern("devID");
❏
device params ptr
. If this device uses additional parameters,
provide the name of the parameter structure. This structure should
have a name with the format DXX_Params where XX is the two-letter
code for the driver used by this device.
Use a leading underscore before the structure name if the structure
is declared in C and you are using the DSP/BIOS Configuration Tool.
Tconf Name: params
Type: Arg
Example:
myDev.params = prog.extern("myParams");
❏
device global data ptr
. Provide a pointer to any global data to be
used by this device. This value can be set only if the function table
type is IOM_Fxns.
Tconf Name: deviceGlobalDataPtr
Type: Arg
Example:
myDev.deviceGlobalDataPtr = 0x00000000;