1 %% Copyright (C) 2013, 2014 Czech Technical University in Prague
5 %% This document contains proprietary information belonging to Czech
6 %% Technical University in Prague. Passing on and copying of this
7 %% document, and communication of its contents is not permitted
8 %% without prior written authorization.
10 %% File : sfunction_tror.tlc
12 %% TLC file for inlining RPP Overrun block.
15 %% BlockTypeSetup() : rtw_tlc.pdf p. 277
16 %% Start() : rtw_tlc.pdf p. 279
17 %% Outputs() : rtw_tlc.pdf p. 281
20 %implements sfunction_tror "C"
25 %% Function: BlockTypeSetup ====================================================
26 %function BlockTypeSetup(block, system) void
28 %% Ensure required header files are included
29 %<RppCommonBlockTypeSetup(block, system)>
30 %assign ::rpp_tror_present=1
35 %% Function: Start =============================================================
36 %function Start(block, system) Output
38 %if !SLibCodeGenForSim()
44 %% Function: Outputs ===========================================================
45 %function Outputs(block, system) Output
47 %if !SLibCodeGenForSim()
49 %<LibAddToCommonIncludes("rpp_simulink_runtime.h")>
52 %% Call a function subsystem
53 %foreach callIdx = NumSFcnSysOutputCalls
54 %if LibIsEqual(SFcnSystemOutputCall[callIdx].BlockToCall,"unconnected")
57 %% call the downstream system
58 %<LibBlockExecuteFcnCall(block, callIdx)>\