info - Information about target processor

Syntax

info = info(cc)
info = info(rx)

Description

info = info(cc) returns the property names and property values associated with the processor targeted by cc. info is a structure containing the following information elements and values:

Structure ElementData TypeDescription

info.procname

String

Processor name as defined in the CCS setup utility. In multiprocessor systems, this name reflects the specific processor associated with cc.

info.isbigendian

Boolean

Value describing the byte ordering used by the target processor. When the processor is big-endian, this value is 1. Little-endian processors return 0.

info.family

Integer

Three-digit integer that identifies the processor family, ranging from 000 to 999. For example, 320 for Texas Instruments™ digital signal processors.

info.subfamily

Decimal

Decimal representation of the hexadecimal identification value that TI assigns to the processor to identify the processor subfamily. IDs range from 0x000 to 0x3822. Use dec2hex to convert the value in info.subfamily to standard notation. For example

dec2hex(info.subfamily)

produces '67' when the processor is a member of the 67xx processor family.

info.timeout

Integer

Default time-out value MATLAB® software uses when transferring data to and from CCS. All functions that use a time-out value have an optional timeout input argument. When you omit the optional argument, MATLAB software uses this default value – 10s.

info = info(rx) returns info as a cell arraying containing the names of your open RTDX™ channels.

Using info with multiprocessor boards

Method info works with targets that have more than one processor by returning the information for each processor accessed by the cc object you created with ticcs. The structure of information returned is identical to the single processor case, for every included processor.

Examples

On a PC with a simulator configured in CCS IDE, info returns the configuration for the processor being simulated:

info(cc)

ans = 

       procname: 'CPU'
    isbigendian: 0
         family: 320
      subfamily: 103
        timeout: 10

This example simulates the TMS320C6211 processor running in little-endian mode. When you use CCS Setup Utility to change the processor from little-endian to big-endian, info shows the change.

info(cc)

ans = 

       procname: 'CPU'
    isbigendian: 1
         family: 320
      subfamily: 103
        timeout: 10

If you have two open channels, chan1 and chan2,

info = info(rx)

returns

info = 
'chan1'
'chan2'

where info is a cell array. You can dereference the entries in info to manipulate the channels. For example, you can close a channel by dereferencing the channel in info in the close function syntax.

close(rx.info{1,1})

See Also

ticcs, dec2hex, get, set

  


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