HST Module
Application Program Interface
2-145
halted (for example, at a breakpoint). The program code size is
smaller when the Host Link Type is set to None because RTDX code
is not included in the program.
Tconf Name: HOSTLINKTYPE
Type: EnumString
Options:
"RTDX", "NONE"
Example:
bios.HST.HOSTLINKTYPE = "RTDX";
HST Object Properties
A host channel maintains a buffer partitioned into a fixed number of fixed
length frames. All I/O operations on these channels deal with one frame
at a time; although each frame has a fixed length, the application can put
a variable amount of data in each frame.
The following properties can be set for a host file object in the HST Object
Properties dialog of the DSP/BIOS Configuration Tool or in a Tconf script.
To create an HST object in a configuration script, use the following
syntax:
var myHst = bios.HST.create("myHst");
The Tconf examples that follow assume the object has been created as
shown.
❏
comment
. A comment to identify this HST object.
Tconf Name: comment
Type: String
Example:
myHst.comment = "my HST";
❏
mode.
The type of channel: input or output. Input channels are used
by the target to read data from the host; output channels are used by
the target to transfer data from the target to the host.
Tconf Name: mode
Type: EnumString
Options:
"output", "input"
Example:
myHst.mode = "output";
❏
bufseg.
The memory segment from which the buffer is allocated; all
frames are allocated from a single contiguous buffer (of size
framesize x numframes).
Tconf Name: bufSeg
Type: Reference
Example:
myHst.bufSeg = prog.get("myMEM");
❏
bufalign.
The alignment (in words) of the buffer allocated within the
specified memory segment.
Tconf Name: bufAlign
Type: Int16
Options:
must be >= 4 and a power of 2
Example:
myHst.bufAlign = 4;