Highlights from
Embedded Coder Support Package for Green Hills MULTI IDE (R2012b)

image thumbnail

Embedded Coder Support Package for Green Hills MULTI IDE (R2012b)

by

 

Embedded Coder integration for creating models that run directly in Green Hills MULTI IDE

list(id,ltype,llist)
function resp = list(id,ltype,llist)
%LIST Returns a list of information from MULTI(R).
%  I = LIST(id,TYPE) reads information about your MULTI and returns it in 
%  'I'.  Different types of information and return formats are possible.  
%  The TYPE parameter specifies which list to return.  The LIST command 
%  returns dynamic MULTI information that can be altered by the user.  The
%  returned 'I' list represents a snapshot of the present MULTI 
%  configuration state.  Be aware that old copies of 'I' might contain 
%  stale information.
% 	
%  I = LIST(id,'project') returns a vector of structures in I that contains
%  project information:
%    I(n).name             - Project file name with path.
% 	 I(n).primary          - The configuration file used for the project.
% 	 I(n).compileroptions  - Compiler option string.
% 	 I(n).type             - Project type: 'project'or 'projlib'. 
%                            See GHSMULTI/NEW.
% 	 I(n).srcfiles         - Vector of structures that describes project 
% 	                         source files.
% 	 I(n).srcfiles(m).name - Source file name with path.
% 
%  I = LIST(id,'variable') returns a structure of structures in I that 
%  contains information on all local variables within scope.  The list also
%  includes information on all global variables.  If a local variable has 
%  the same symbol name as a global, LIST returns information about the 
%  local variable only. 
%   
%  I = LIST(id,'variable',VARNAME) returns information about the specified
%  variable.
%  I = LIST(id,'variable',VARNAMELIST) returns information about variables
%  in a list specified by VARNAMELIST. 
%  I = LIST(id,'globalvar') returns information about all global
%  variables.
%  I = LIST(id,'globalvar',VARNAME) returns information about the specified
%  global variable.
%  I = LIST(id,'globalvar',VARNAMELIST) returns information about global 
%  variables in a list specified by VARNAMELIST. 
% 	
%  The returned information follows the format:
% 	 I.(varname1). ...
% 	 I.(varname2). ...
% 	 ...
% 	 I.(varnameN).name     - Symbol name 
% 	 I.(varnameN).address  - Information about the location of the symbol
% 	
%  I = LIST(id,'function') returns information about all functions in the
%  embedded program.
%  I = LIST(id,'function',FUNCNAME) returns information about the specified
%  function.
%  I = LIST(id,'function',FUNCNAMELIST) returns information about
%  functions in a list specified by FUNCNAMELIST.
%     
%  The returned information follows the format:
%    I.(funcname1). ...
% 	 I.(funcname2). ...
% 	 ...
% 	 I.(funcnameN).name    - Function name. 
% 	 I.(funcnameN).address - Relevant address information such as start 
%                            address.
% 	 I.(funcnameN).haddress- The HEX representation of address.
%    I.(funcnameN).islib   - Is this a library function?
%         
%  If a variable name or function name is not a valid MATLAB structure 
%  fieldname, it is modified so that it becomes valid.
%     
%  Example :
%  varname1 = '_with_underscore'; % invalid fieldname as it starts	with '_'
%    >> I = list(id,'variable',varname1);
%         
% 	 ans = 
%      	Q_with_underscore : [varinfo]
% 		
% 	 >> I.Q_with_underscore
%                     	 name: '_with_underscore '
%                     address: 82540
%                    haddress: '0x1426c'
% 	
%  In fieldnames that start with an underscore character, the character 'Q'
%  is inserted before the name.
% 	
%  Changing the MATLAB fieldname does not change the name of the embedded 
%  symbol.
% 	
%  See also GHSMULTI/INFO.

% Copyright 2012 The MathWorks, Inc.

Contact us