RTDX Module
Application Program Interface
2-355
You should allow all interrupts to be disabled inside critical RTDX
sections if your application makes any RTDX calls from SWI or TSK
threads. If your application does not make RTDX calls from SWI or
TSK threads, you may modify bits in this mask to enable specific
high-priority interrupts. See the RTDX documentation for details.
Tconf Name: INTERRUPTMASK
Type: Int16
Example:
bios.RTDX.INTERRUPTMASK = 0x00000000;
RTDX Object
Properties
To create an RTDX object in a configuration script, use the following
syntax. The Tconf examples that follow assume the object has been
created as shown here.
var myRtdx = bios.RTDX.create("myRtdx");
The following properties can be set for an RTDX object in the RTDX
Object Properties dialog of the DSP/BIOS Configuration Tool or in a
Tconf script:
❏
comment
. Type a comment to identify this RTDX object.
Tconf Name: comment
Type: String
Example:
myRtdx.comment = "my RTDX";
❏
Channel Mode
. Select output if the RTDX channel handles output
from the DSP to the host. Select input if the RTDX channel handles
input to the DSP from the host.
Tconf Name: channelMode
Type: EnumString
Options:
"input", "output"
Example:
myRtdx.channelMode = "output";
Examples
The
rtdx.xls
example is in the
TI_DIR\examples\hostapps\rtdx
folder. The examples are described below.
❏
Ta_write.asm
. Target to Host transmission example. This example
sends 100 consecutive integers starting from 0. In the
rtdx.xls
file,
use the h_read VB macro to view data on the host.
❏
Ta_read.asm
. Host to target transmission example. This example
reads 100 integers. Use the h_write VB macro of the
rtdx.xls
file to
send data to the target.
❏
Ta_readNB.asm
. Host to target transmission example. This
example reads 100 integers. Use the h_write VB macro of the
rtdx.xls
file to send data to the target. This example demonstrates
how to use the non-blocking read, RTDX_readNB, function.
Note:
Programs must be linked with C run-time libraries and contain
the symbol _main.