DIO Adapter
2-92
Description
The DIO adapter allows GIO-compliant mini-drivers to be used through
SIO module functions. Such mini-drivers are described in the
DSP/BIOS
Device Driver Developer's Guide
(SPRU616).
Configure Mini-driver
To create a DIO device object in a configuration script, first use the
following syntax:
var myUdev = bios.UDEV.create("myUdev");
Set the DEV Object Properties for the device as follows.
❏
init function.
Type 0 (zero).
❏
function table ptr.
Type _DIO_FXNS
❏
function table type.
IOM_Fxns
❏
device id.
Type 0 (zero).
❏
device params ptr.
Type 0 (zero).
Once there is a UDEV object with the IOM_Fxns function table type in the
configuration, you can create a DIO object with the following syntax and
then set properties for the object:
var myDio = bios.Dio.create("myDio");
DIO 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 DIO
Driver Properties and DIO Object Properties headings. For descriptions
of data types, see Section 1.4,
Module Configuration Parameters
Instance Configuration Parameters
DIO Adapter
SIO Mini-driver adapter
Name
Type
Default
OBJMEMSEG
Reference
prog.get("DARAM")
STATICCREATE
Bool
false
Name
Type
Default
comment
String
"<add comments here>"
useCallBackFxn
Bool false
deviceName
Reference
prog.get("UDEV0")
chanParams
Arg
0x00000000