DGN Driver
2-80
Important Note:
This driver will no longer be supported in the next
major release of DSP/BIOS. We recommend that you use the IOM
driver interface instead. See the
DSP/BIOS Driver Developer’s Guide
(SPRU616). This driver is still supported in DSP/BIOS 5.32 and will be
supported in any patch releases or minor enhancements to DSP/BIOS
5.32.
Description
The DGN driver manages a class of software devices known as
generators, which produce an input stream of data through successive
application of some arithmetic function. DGN devices are used to
generate sequences of constants, sine waves, random noise, or other
streams of data defined by a user function.The number of active
generator devices in the system is limited only by the availability of
memory.
Configuring a
DGN Device
To create a DGN device object in a configuration script, use the following
syntax:
var myDgn = bios.DGN.create("myDgn");
See the DGN Object Properties for the device you created.
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 DGN
Object Properties heading. For descriptions of data types, see Section
1.4,
Instance Configuration Parameters
DGN Driver
Software generator driver
Name
Type
Default (Enum Options)
comment
String
"<add comments here>"
device
EnumString
"user" ("sine", "random", "constant",
"printHex", "printInt")
useDefaultParam
Bool
false
deviceId
Arg
prog.extern("DGN_USER", "asm")
constant
Numeric
1
seedValue
Int32
1
lowerLimit
Numeric
-32767
upperLimit
Numeric
32767
gain
Numeric
32767
frequency
Numeric
1