1 % Copyright (C) 2013 Czech Technical University in Prague
4 % - Carlos Jenkins <carlos@jenkins.co.cr>
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.
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.
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/>.
21 % slblocks defines a block library.
25 % Example in <matlabroot>/toolbox/rtw/targets/ecoder/slblocks.m
28 function blkStruct = slblocks
30 % Information for "Blocksets and Toolboxes" subsystem
32 % Library's name. The name appears in the Library Browser's
34 blkStruct.Name = sprintf('Embedded Target\n for RPP');
35 % The function that will be called when the user double-clicks on
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'')';
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;