]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/blob - rpp/blocks/slblocks.m
Normalizing headers. I know I know... obsessive-compulsive disorder.
[pes-rpp/rpp-simulink.git] / rpp / blocks / slblocks.m
1 % Copyright (C) 2013 Czech Technical University in Prague
2 %
3 % Authors:
4 %     - Carlos Jenkins <carlos@jenkins.co.cr>
5 %
6 % This program is free software; you can redistribute it and/or modify
7 % it under the terms of the GNU General Public License as published by
8 % the Free Software Foundation; either version 2 of the License, or
9 % (at your option) any later version.
10 %
11 % This program is distributed in the hope that it will be useful,
12 % but WITHOUT ANY WARRANTY; without even the implied warranty of
13 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 % GNU General Public License for more details.
15 %
16 % You should have received a copy of the GNU General Public License
17 % along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 %
19 % File : slblocks.m
20 % Abstract:
21 %     slblocks defines a block library.
22 %
23 % References:
24 %     rtw_ug.pdf p. 1127
25 %     Example in <matlabroot>/toolbox/rtw/targets/ecoder/slblocks.m
26
27
28 function blkStruct = slblocks
29
30   % Information for "Blocksets and Toolboxes" subsystem
31
32   % Library's name. The name appears in the Library Browser's
33   % contents pane.
34   blkStruct.Name = sprintf('Embedded Target\n for RPP');
35   % The function that will be called when the user double-clicks on
36   % the library's name.
37   blkStruct.OpenFcn = 'rpp_lib';
38   % The argument to be set as the Mask Display for the subsystem. You
39   % may comment this line out if no specific mask is desired or write a
40   % drawing command. Example:
41   % blkStruct.MaskDisplay = 'plot([0:2*pi],sin([0:2*pi]));';
42   blkStruct.MaskDisplay = 'disp(''RPP TARGET'')';
43
44   % Information for Simulink Library Browser
45   Browser(1).Library = 'rpp_lib';
46   Browser(1).Name = 'Embedded Target for RPP';
47   Browser(1).IsFlat = 1; % Is this library "flat" (i.e. no subsystems)?
48   blkStruct.Browser = Browser;
49