MATLAB Link for Code Composer Studio Development Tools Previous page   Next Page

Introduction to Objects

Within your MATLAB Link for Code Composer Studio Development Tools software, the links and the objects use object-oriented programming techniques. Along with the link object you use to connect MATLAB to your target hardware, MATLAB Link for Code Composer Studio provides many objects for creating, accessing (reading from and writing to), and manipulating (changing the contents of in MATLAB) all the symbols in the symbol table for a program loaded on your signal processor. Within the table, each object in the class name column provides access to objects as described.

Class Name
Inherits From
Description
bitfield
memoryobj class
Access the contents of a bitfield defined in your code
enum
numeric class
Contents of an enumerated data type stored in memory defined in your code
function
None
Contents of a function in your source code, or used in your project as a library function. Can also represent new functions you develop and add to your project.
numeric
memoryobj class
Access the contents of a numeric data type stored in memory defined in your code
pointer
numeric class
Contents of a pointer stored in a memory location on your target
renum
rnumeric class
Contents of an enumerated data type stored in a register on your target
rnumeric
registerobj class
Contents of register that contains a numeric data type
rpointer
rnumeric class
Contents of a pointer stored in a register on your target
rstring
rnumeric class
Contents of a string stored in a register on your target
string
numeric class
Contents of a string stored in a memory location on your target
structure
None
Contents of a structure stored in memory on your target
type
None
Typedefs stored in memory on your target after you add them to the type object

In the Inherits From column you see the name of another class. Classes that inherit from another class contain all the properties and methods of the Inherited From class as well as their own unique properties. Note that although object and class seem to be interchangeable, objects are instances of classes--the properties of a class are the properties of an instance of the class, an object. This guide treats the distinction fairly loosely, using object in most instances.

For example, the String object has the properties and methods of the Numeric class, and its own properties and methods.

By using the objects provided, you can modify and view any and all symbols from MATLAB.

Each of the objects has properties and methods specific to its use, although many of the objects use the same methods and properties, as you see in the next sections.

While you can use the MATLAB Link for Code Composer Studio software without knowing about its object-oriented design and implementation, you might find the next sections about objects useful to gain a better understanding of the objects.


Previous page  Objects for MATLAB Link Software Some Object-Oriented Programming Terms Next page

 © 1994-2010 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS