
Rebuilding the Demo Host Software
Additional Procedures
A-7
JavaScript's syntax allows C programmers to understand and (to a
degree) modify programs written in this language even if they have never
seen this language before. To learn how to make nontrivial modifications
or to write new JavaScript programs, please refer to this Web page:
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide
Most C programmers will not need to refer to the JavaScript guide in
order to understand the scripts in this section. C programmers typically
"get" patterns of JavaScript scripts quickly and can replicate them without
formally learning the language.
Note that the host-side JavaScript scripts use Java library classes.
Modifying these statements requires knowing the APIs of the libraries in
question. However, using Java classes from JavaScript is much easier
than writing Java programs in Java.
A.4.2
Structure of the Host-Side Application
The host-side application is split into four modules:
GUI control:
Main.js
Target control (RPC):
Dm6437evm/Rpc.js
File I/O:
Dm6437evm/Fileio.js
Networking (communicates with target):
Dm6437evm/Ipc.js
The main script, Main.js, is in charge of the GUI only. It draws buttons and
input fields and listens for user actions to send an appropriate command
to the target (for example, start playing, stop playing, and switch mode).
It also starts a separate thread to run fileio functions and thus serve the
target with input and output audio/video files.
Main.js
(GUI control)
Dm6437evm/Rpc.js
(target control)
Dm6437evm/Fileio.js
(file I/O)
Dm6437evm/Ipc.js
(networked communicaton
with target)
Summary of Contents for TMS320DM6437
Page 1: ...TMS320DM6437 DVDP Getting Started Guide Literature Number SPRUEV6 July 2007 ...
Page 20: ...2 8 ...
Page 34: ...3 14 ...
Page 40: ...4 6 ...
Page 63: ......