DIO Adapter
2-94
calls to SIO_create fail. Setting this property to true reduces the
application’s code size (so long as the application does not call
MEM_alloc or its related functions elsewhere).
Tconf Name: STATICCREATE
Type: Bool
Example:
bios.DIO.STATICCREATE = false;
DIO Object Properties
The following properties can be set for a DIO device using the DIO Object
Properties dialog in the DSP/BIOS Configuration Tool or in a Tconf script.
To create a DIO device object in a configuration script, use the following
syntax:
var myDio = bios.DIO.create("myDio");
The Tconf examples assume the myDio object has been created as
shown.
❏
comment
. Type a comment to identify this object.
Tconf Name: comment
Type: String
Example:
myDio.comment = "DIO device";
❏
use callback version of DIO function table
. Set this property to
true if you want to use DIO with a callback function. Typically, the
callback function is SWI_andnHook or a similar function that posts a
SWI. Do not set this property to true if you want to use DIO with a TSK
thread.
Tconf Name: useCallBackFxn
Type: Bool
Example:
myDio.useCallBackFxn = false;
❏
fxnsTable
. This informational property shows the DIO function table
used as a result of the settings in the "use callback version of DIO
function table" and "Create ALL DIO Objects Statically" properties.
The four possible setting combinations of these two properties
correspond to the four function tables: DIO_tskDynamicFxns,
DIO_tskStaticFxns, DIO_cbDynamicFxns, and DIO_cbStaticFxns.
Tconf Name: N/A
❏
device name
. Name of the device to use with this DIO object.
Tconf Name: deviceName
Type: Reference
Example:
myDio.deviceName =
prog.get("UDEV0")
;
❏
channel parameters
. This property allows you to pass an optional
argument to the mini-driver create function. See the chanParams
parameter of the GIO_create function.
Tconf Name: chanParams
Type: Arg
Example:
myDio.chanParams = 0x00000000;